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

Utilities::redirect: Verify target URL type.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2684 44740490-163a-0410-bde0-09ae8108e29a
parent a189f24b
No related branches found
No related tags found
No related merge requests found
......@@ -473,6 +473,11 @@ class SimpleSAML_Utilities {
$url = self::selfURLhost() . $url;
}
/* Verify that the URL is to a http or https site. */
if (!preg_match('@^https?://@i', $url)) {
throw new SimpleSAML_Error_Exception('Redirect to invalid URL: ' . $url);
}
/* Determine which prefix we should put before the first
* parameter.
*/
......
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