this code looks wrong to me but i'm putting it back while we find out what the right code should look like

This commit is contained in:
Michiel de Jong 2012-05-18 15:39:28 +02:00
parent 1a874b4c56
commit a6ff909911
1 changed files with 1 additions and 1 deletions

View File

@ -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'));
}