http-message
http-message copied to clipboard
Can't create URLs with long query strings
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.