|
|
|
@ -321,7 +321,11 @@ class OC_Util { |
|
|
|
|
* Redirect to the user default page |
|
|
|
|
*/ |
|
|
|
|
public static function redirectToDefaultPage(){ |
|
|
|
|
header( 'Location: '.OC::$WEBROOT.'/'.OC_Appconfig::getValue('core', 'defaultpage', 'files/index.php')); |
|
|
|
|
if(isset($_REQUEST['redirect_url'])) { |
|
|
|
|
header( 'Location: '.$_REQUEST['redirect_url']); |
|
|
|
|
} else { |
|
|
|
|
header( 'Location: '.OC::$WEBROOT.'/'.OC_Appconfig::getValue('core', 'defaultpage', 'files/index.php')); |
|
|
|
|
} |
|
|
|
|
exit(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|