summaryrefslogtreecommitdiffstats
path: root/login.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-02-10 20:41:38 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-02-10 20:41:38 +0000
commitd407773cb2ab492d4d4f4814d3566737a5ccfb4a (patch)
treee7d4cb166ef1eb5fcc0101da3385c3d2702ba598 /login.php
parentbdd6c2acd42b11f489ee6fd572d22d2e49843a79 (diff)
downloadampache-d407773cb2ab492d4d4f4814d3566737a5ccfb4a.tar.gz
ampache-d407773cb2ab492d4d4f4814d3566737a5ccfb4a.tar.bz2
ampache-d407773cb2ab492d4d4f4814d3566737a5ccfb4a.zip
fixed democratic play vote order and user preferences update
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