Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Can't create URLs with long query strings #39

Open
bjoern-tantau opened this issue Sep 17, 2019 · 0 comments
Open

Can't create URLs with long query strings #39

bjoern-tantau opened this issue Sep 17, 2019 · 0 comments

Comments

@bjoern-tantau
Copy link

When my application gets a request with a long query string (above ~3000 chars) I get an InvalidArgumentException saying "Invalid query '...'". This seems to be due to preg_match not being able to handle long strings.

You can test it with

$query = str_repeat('a', 3000);
new \Jasny\HttpMessage\Uri(['query' => $query]);

Unfortunately I need long query strings to handle SAML Requests.

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

No branches or pull requests

1 participant