diff --git a/lib/SimpleSAML/Utilities.php b/lib/SimpleSAML/Utilities.php index 19bbfbd40f2a5f241dcae7cbd164f4f758ee9072..e0feecd4005a4c69ce353bfe48d366e14cbc12a2 100644 --- a/lib/SimpleSAML/Utilities.php +++ b/lib/SimpleSAML/Utilities.php @@ -526,6 +526,10 @@ class SimpleSAML_Utilities { $code = 302; } + if (strlen($url) > 2048) { + SimpleSAML_Logger::warning('Redirecting to URL longer than 2048 bytes.'); + } + /* Set the location header. */ header('Location: ' . $url, TRUE, $code);