summaryrefslogtreecommitdiffstats
path: root/lib/util.php
diff options
context:
space:
mode:
authorMichiel de Jong <michiel@unhosted.org>2012-05-18 15:39:28 +0200
committerMichiel de Jong <michiel@unhosted.org>2012-05-18 15:39:28 +0200
commita6ff909911c2d60ae88913c05de81a7b726331aa (patch)
tree5b687063e2d227eb942df12c19b0d804a47ef19e /lib/util.php
parent1a874b4c56af0ef4ef20c37a2b5d348551759ff9 (diff)
downloadnextcloud-server-a6ff909911c2d60ae88913c05de81a7b726331aa.tar.gz
nextcloud-server-a6ff909911c2d60ae88913c05de81a7b726331aa.zip
this code looks wrong to me but i'm putting it back while we find out what the right code should look like
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 d2dd28b7da8..22b327a88c0 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'));
}