summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-08-18 22:01:18 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-08-18 22:01:18 +0200
commit1c247bc4073451ad156ecedfbd2f7ebe73b56c12 (patch)
tree522b1527126d4b687229fb3e2c50a3c052f4f310 /system
parentf0dd547bd84b4461cdab8d7d556bdb275bf4864a (diff)
Fix redirect URI when using multiple tabs
If we store only the last called URI in the session we can't support multiple browser tabs that all need to log in again. Fix this by storing the URI in the URL. Also change a trim() to ltrim() so that the URI string we store keeps it's trailing slash. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'system')
-rw-r--r--system/core/Config.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Config.php b/system/core/Config.php
index 46ed9365c..caa8b945a 100644
--- a/system/core/Config.php
+++ b/system/core/Config.php
@@ -299,7 +299,7 @@ class CI_Config {
{
$uri = implode('/', $uri);
}
- $uri = trim($uri, '/');
+ $uri = ltrim($uri, '/');
}
else
{