mirror of
https://github.com/nextcloud/server.git
synced 2026-04-20 22:00:39 -04:00
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:
parent
1a874b4c56
commit
a6ff909911
1 changed files with 1 additions and 1 deletions
|
|
@ -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'));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue