aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-06 23:06:38 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-05-06 23:06:38 +0200
commitd2b0de614eb3bbcdb2eae90929af48a69777f49c (patch)
treea30de7fd8b4355a7df530018c9d7cac51b27353b /index.php
parent1945cd694636def02a2b2d4fb36720b3f0aeeb10 (diff)
downloadnextcloud-server-d2b0de614eb3bbcdb2eae90929af48a69777f49c.tar.gz
nextcloud-server-d2b0de614eb3bbcdb2eae90929af48a69777f49c.zip
fix an XSS bug
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 b9872a906d7..91f0cfb5e48 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'])?$_REQUEST['redirect_url']:'' ));
+ OC_Template::printGuestPage('', 'login', array('error' => $error, 'sectoken' => $sectoken, 'redirect' => isset($_REQUEST['redirect_url'])?strip_tags($_REQUEST['redirect_url']):'' ));
}
}