summaryrefslogtreecommitdiffstats
path: root/login.php
diff options
context:
space:
mode:
Diffstat (limited to 'login.php')
-rw-r--r--login.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/login.php b/login.php
index 0c037fc1..71bd52c4 100644
--- a/login.php
+++ b/login.php
@@ -132,7 +132,7 @@ if ($auth['success']) {
/* Make sure they are actually trying to get to this site and don't try to redirect them back into
* an admin section
**/
- if (strstr($_POST['referrer'], conf('web_path')) AND
+ if (substr($_POST['referrer'],0,strlen(conf('web_path'))) == conf('web_path') AND
!strstr($_POST['referrer'],"install.php") AND
!strstr($_POST['referrer'],"login.php") AND
!strstr($_POST['referrer'],"update.php") AND