Thanks for the help,
I have identified the problem. It is not in the regular expressions above but in the function rewrite urls were the following line
$url = @parse_url(str_replace('\'"','',$eval));
Should be replace with
list($url['path'], $url['query']) = split("\?", str_replace('\'"','',$eval));
What happens is the parse_url function interprets the firs colon in the path and therefore messes up.
Using the split funtion fixes this problem.
Hope this helps someone else
|