summaryrefslogtreecommitdiffstats
path: root/lib/util.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-09-28 22:27:52 +0200
committerBart Visscher <bartv@thisnet.nl>2012-09-28 22:27:52 +0200
commit22d22d19c079f54cf12a6b47981c22aa1432346d (patch)
treed7f477c28a6e8d56d2edb842a28679a97b4e88a6 /lib/util.php
parentfed34aecfa5b36c031ed754ed245549aa4a4194b (diff)
downloadnextcloud-server-22d22d19c079f54cf12a6b47981c22aa1432346d.tar.gz
nextcloud-server-22d22d19c079f54cf12a6b47981c22aa1432346d.zip
Do urlencoding in linkTo functions
Diffstat (limited to 'lib/util.php')
-rwxr-xr-xlib/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index 777cb7a28fc..d1227f8379c 100755
--- a/lib/util.php
+++ b/lib/util.php
@@ -344,7 +344,7 @@ class OC_Util {
public static function checkLoggedIn() {
// Check if we are a user
if( !OC_User::isLoggedIn()) {
- header( 'Location: '.OC_Helper::linkToAbsolute( '', 'index.php', array('redirect_url' => urlencode($_SERVER["REQUEST_URI"]))));
+ header( 'Location: '.OC_Helper::linkToAbsolute( '', 'index.php', array('redirect_url' => $_SERVER["REQUEST_URI"])));
exit();
}
}