diff options
Diffstat (limited to 'www/module.php')
-rw-r--r-- | www/module.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/www/module.php b/www/module.php index 19ccc58..14bfd4c 100644 --- a/www/module.php +++ b/www/module.php @@ -75,9 +75,9 @@ try { * URL will detect both '../' and './'. Searching for '\' will detect attempts to * use Windows-style paths. */ - if (strpos($url, '\\')) { + if (strpos($url, '\\') !== FALSE) { throw new SimpleSAML_Error_BadRequest('Requested URL contained a backslash.'); - } elseif (strpos($url, './')) { + } elseif (strpos($url, './') !== FALSE) { throw new SimpleSAML_Error_BadRequest('Requested URL contained \'./\'.'); } |