summaryrefslogtreecommitdiffstats
path: root/lib/util.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 /lib/util.php
parent7dcf38c40f2866210135680f8ed73f9401669f17 (diff)
downloadnextcloud-server-051442bc7654cc41bc8e1bb48762494764111daa.tar.gz
nextcloud-server-051442bc7654cc41bc8e1bb48762494764111daa.zip
Sanitize redirect urls
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index 8cf6b3c0307..e4546d6ac3d 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -312,7 +312,7 @@ class OC_Util {
*/
public static function redirectToDefaultPage(){
if(isset($_REQUEST['redirect_url'])) {
- header( 'Location: '.$_REQUEST['redirect_url']);
+ header( 'Location: '.htmlentities($_REQUEST['redirect_url']));
} else {
header( 'Location: '.OC::$WEBROOT.'/'.OC_Appconfig::getValue('core', 'defaultpage', '?app=files'));
}