zendframework/zf2 — pull request #2838 by SocalNick (2012-10-25 21:40:07+00:00)
Title: Fix #2811

I believe the regex is trying to remove everything before the path portion of the URL, however when attempting to pass a URL as a parameter, it was being to greedy.

I'm not sure why it is necessary to apply this regex when coming from $_SERVER['REQUEST_URI'], but since we are in an HTTP Request class, I have adjusted the regex to be more specific about matching http or https only at the beginning of the string.

FYI - I chatted with @shevron on IRC and he confirmed that a URL as a parameter doesn't need characters encoded and that the bug was in the Request object.