Skip to content

Double QUERY_STRING in error URL #6

@zenkay

Description

@zenkay

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions