Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-08-22 03:41:34 +0400
committervipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-08-22 03:41:34 +0400
commit74cb11268d6c6c1fc6108cf6fe0775bafc53aaf5 (patch)
tree3ee62eadad1ff08fcff34b325caeb83b86862821 /plugins/Login
parent6d46bf7ca848d2154a70cd275a19cdc12c389e4a (diff)
fix redirect after install
Diffstat (limited to 'plugins/Login')
-rw-r--r--plugins/Login/Controller.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Login/Controller.php b/plugins/Login/Controller.php
index 6e4c34ae4b..1ae2c3f2a5 100644
--- a/plugins/Login/Controller.php
+++ b/plugins/Login/Controller.php
@@ -42,8 +42,8 @@ class Piwik_Login_Controller extends Piwik_Controller
if($form->validate())
{
- // if the current url to redirect contains module=login we instead redirect to the doc root
- if(stripos($urlToRedirect, 'module=Login') !== false)
+ // if the current url to redirect contains module=Login or Installation we instead redirect to the doc root
+ if(preg_match('/module=(Login|Installation)/', $urlToRedirect))
{
$urlToRedirect = 'index.php';
}