summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2012-05-08 17:41:50 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2012-05-08 17:41:50 -0400
commit051442bc7654cc41bc8e1bb48762494764111daa (patch)
treeb4cbee9163001652c70feb0f95550d690a754eca /index.php
parent7dcf38c40f2866210135680f8ed73f9401669f17 (diff)
downloadnextcloud-server-051442bc7654cc41bc8e1bb48762494764111daa.tar.gz
nextcloud-server-051442bc7654cc41bc8e1bb48762494764111daa.zip
Sanitize redirect urls
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index 5d5307065bd..952cd89141a 100644
--- a/index.php
+++ b/index.php
@@ -115,6 +115,6 @@ elseif(OC_User::isLoggedIn()) {
if(is_null(OC::$REQUESTEDFILE)){
$sectoken=rand(1000000,9999999);
$_SESSION['sectoken']=$sectoken;
- OC_Template::printGuestPage('', 'login', array('error' => $error, 'sectoken' => $sectoken, 'redirect' => isset($_REQUEST['redirect_url'])?strip_tags($_REQUEST['redirect_url']):'' ));
+ OC_Template::printGuestPage('', 'login', array('error' => $error, 'sectoken' => $sectoken, 'redirect' => isset($_REQUEST['redirect_url'])?htmlentities($_REQUEST['redirect_url']):'' ));
}
}