You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additionally, it is necessary to urldecode() the value of $_GET['url'] before redirecting to it; I added the following on this line and that did the job:
$to = urldecode($to);
The text was updated successfully, but these errors were encountered:
Steps to reproduce
%%$_GET['url']%%
regex:/^/go.php.*/
example.com
with your domain):http://example.com/go.php?url=http://google.com/
Expected Behavior
I would expect the Target URL to get the value of
$_GET['url']
(in this casehttp://google.com/
) and then redirect me to that URL.Observed Behavior
I am redirected to
http://example.com/
(i.e., WP Redirects is not picking up the value of$_GET['url']
and redirecting me tohttp://google.com/
).Debugging Results
After some debugging, I narrowed the bug down to two Regular Expressions.
The first bug is in
redirect_redirects()
:which should be:
and the second is in
_url_e_gprcs_value()
:which should be:
You can see a diff of these changes here.
Additionally, it is necessary to
urldecode()
the value of$_GET['url']
before redirecting to it; I added the following on this line and that did the job:The text was updated successfully, but these errors were encountered: