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
$_ = $node->getAttribute('href');
s!^/a/notifications.php\?redir=([^&]+)&.+!$1! or die;
s/%25/%/g;
s/%26/&/g;
s/%2B/+/g;
s/%2F/\//g;
s/%3A/:/g;
s/%3D/=/g;
s/%3F/?/g;
s/%5C/\\/g;
s/%7C/|/g;
$node->setAttribute( 'href', $_ );
If uri_unescape accepted an additional argument, '%&+/:=?\|', all that
wouldn't have been necessary.
You might ask why I can't just use plain uri_unescape? Well that would
unescape CJK characters, resulting in an invalid URL.
Perhaps also allow a second paramater for
uri_unescape, to list what characters one wants unescaped or not too,
just like uri_escape.
The text was updated successfully, but these errors were encountered: