Jump to:

23459 Posts in 18906 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » HTTP.setGetVar bug

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

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

Page: 1
Go to End
Author Topic: 792 Views
  • Jarek
    Community Member
    30 Posts

    HTTP.setGetVar bug Link to this post

    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);

  • Willr
    Forum Moderator
    5497 Posts

    Re: HTTP.setGetVar bug Link to this post

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

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.