Skip to content
Snippets Groups Projects
Commit fa7f30a0 authored by Olav Morken's avatar Olav Morken
Browse files

SimpleSAML_Utilities::redirect: Log warning when URL exceeds 2048 bytes.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2754 44740490-163a-0410-bde0-09ae8108e29a
parent 898c6158
No related branches found
No related tags found
No related merge requests found
...@@ -526,6 +526,10 @@ class SimpleSAML_Utilities { ...@@ -526,6 +526,10 @@ class SimpleSAML_Utilities {
$code = 302; $code = 302;
} }
if (strlen($url) > 2048) {
SimpleSAML_Logger::warning('Redirecting to URL longer than 2048 bytes.');
}
/* Set the location header. */ /* Set the location header. */
header('Location: ' . $url, TRUE, $code); header('Location: ' . $url, TRUE, $code);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment