Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

HTTP.setGetVar bug


Go to End


2 Posts   1180 Views

Avatar
Jarek

Community Member, 30 Posts

12 August 2010 at 1:44am

There is a bug in setGetVar. Bug occurs for links with '&' as entity (default value for $separator = '&'). PHP function
parse_url works correctly only where ulr params are seprated by & not by entity. So this line is wrong

$parts = parse_url($uri);

befor that sholud be one of this lines:

$uri = str_replace('&', '&', $uri); or
$uri = str_replace($separator, '&', $uri);

Avatar
Willr

Forum Moderator, 5523 Posts

12 August 2010 at 10:44pm

Please submit bugs to open.silverstripe.org as tickets. Then it can be assigned to developer to look at.