Skip to content

Add request QUERY_STRING to server environment. #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

kentr
Copy link

@kentr kentr commented Jan 26, 2016

@kentr
Copy link
Author

kentr commented Jan 26, 2016

Hmm... Looks like \Symfony\Component\HttpFoundation::create() actually is supposed to this for most server environment values, including QUERY_STRING, but it doesn't appear to be happening:

        $queryString = '';
        if (isset($components['query'])) {
            parse_str(html_entity_decode($components['query']), $qs);

            if ($query) {
                $query = array_replace($qs, $query);
                $queryString = http_build_query($query, '', '&');
            } else {
                $query = $qs;
                $queryString = $components['query'];
            }
        } elseif ($query) {
            $queryString = http_build_query($query, '', '&');
        }

@kentr
Copy link
Author

kentr commented Jan 26, 2016

Closing to research a better solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant