Topic: change space into something else in rewrite_rules.php

In my gallery extension you can make albums that contain spaces. How do I turn those spaces into a + or something else so that there is no %20 in the link.

I am now using the next code:

'/^gallery[\/_-]album[\/_-]?(.*?|\/)(\.html?|\/)?$/i'   => 'index.php?gallery=&album=$1',

thanks for your help.

Re: change space into something else in rewrite_rules.php

Give the pattern the /e flag as well and then use str_replace or rawurlencode as the callback function?

Re: change space into something else in rewrite_rules.php

does punbb do it like that for the topic urls?

I will try it, thank smartys.

Re: change space into something else in rewrite_rules.php

thanks smartys, it worked smile /me happy man now