#207 Url rewrite problem with some sites

open
nobody
None
5
2011-06-14
2011-06-14
kaoul.kae
No

Hi,
I found a bug in SimpleTest browser, my website is using url rewriting like this : http://www.mysite.com/index.php?article9
SimpleTest see a GET parameter and i saw in url class that it add an equal like this : http://www.mysite.com/index.php?article9=
This will broke the url rewriting on the website.

I already fixed this bug for myself adding : $encoded = preg_replace('/=$/', '', $encoded);
url.php, line ~363 :
if ($encoded) {
$encoded = preg_replace('/=$/', '', $encoded);
return '?' . preg_replace('/^\?/', '', $encoded);
}

but i'm sure you will find a great solution.

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks