^contains keyword modifier not escaping input

I've got a bit of a query, not sure it's worth a bug report as it seems easy enough to work around, but when using the ^contains keyword modifier and searching for a string containing a "/" character, this is not escaped, the match fails, and results in the following php warning:


(/fudge/general/text.inc:413) - preg_match_all() [function.preg-match-all]: Unknown modifier 'p'



manually escaping with a "\" seems to correct the problem, but is this intended behavior?

[quote]
I've got a bit of a query, not sure it's worth a bug report as it seems easy enough to work around, but when using the ^contains keyword modifier and searching for a string containing a "/" character, this is not escaped, the match fails, and results in the following php warning:



(/fudge/general/text.inc:413) - preg_match_all() [function.preg-match-all]: Unknown modifier 'p'



manually escaping with a "\" seems to correct the problem, but is this intended behavior?

[/quote]



Yes escaping it with a "\" should work fine. But thanks for raising this. This should surely be treated as a bug. Matrix will soon be smart enough to escape it.



Cheers,



Ash