Jump to:

23358 Posts in 17875 Topics by 2862 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: 719 Views
  • Jarek
    Avatar
    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
    Avatar
    Forum Moderator
    5482 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.

    719 Views
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.