http-message icon indicating copy to clipboard operation
http-message copied to clipboard

Can't create URLs with long query strings

Open bjoern-tantau opened this issue 6 years ago • 0 comments

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.

bjoern-tantau avatar Sep 17 '19 08:09 bjoern-tantau