php-hoptoad-notifier icon indicating copy to clipboard operation
php-hoptoad-notifier copied to clipboard

Double QUERY_STRING in error URL

Open zenkay opened this issue 15 years ago • 0 comments

if the script raises an exception has url like http://www.domain.com/path/to/my/script.html?foo=bar

HTTP_HOST = www.domain.com REQUEST_URI = /path/to/my/script.html?foo=bar QUERY_STRING = ?foo=bar

REQUEST_URI already contains QUERY_STRING. Reported URL is wrong: http://www.domain.com/path/to/my/script.html?foo=bar?foo=bar

I fix it replacing REQUEST_URI with SCRIPT_NAME.

zenkay avatar Mar 16 '10 15:03 zenkay