From 1c247bc4073451ad156ecedfbd2f7ebe73b56c12 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 18 Aug 2015 22:01:18 +0200 Subject: 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 --- system/core/Config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/core') 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 { -- cgit v1.2.3-24-g4f1b