summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-07-03 17:54:12 +0200
committerBart Visscher <bartv@thisnet.nl>2012-07-04 17:51:07 +0200
commit280c59e91482660fb9a6f3ccf3f4b6df97883f5c (patch)
treeca706302a16081f441acfef3c5fa9c88f8d5417d
parent621b83df72cdafd41e033c250a000a05b5a2eb97 (diff)
downloadnextcloud-server-280c59e91482660fb9a6f3ccf3f4b6df97883f5c.tar.gz
nextcloud-server-280c59e91482660fb9a6f3ccf3f4b6df97883f5c.zip
More helpfull debug msg for redirectToDefaultPage
-rwxr-xr-xlib/util.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/util.php b/lib/util.php
index 0d9f4129442..2a7b8a922f9 100755
--- a/lib/util.php
+++ b/lib/util.php
@@ -324,16 +324,17 @@ class OC_Util {
* Redirect to the user default page
*/
public static function redirectToDefaultPage(){
- OC_Log::write('core','redirectToDefaultPage',OC_Log::DEBUG);
if(isset($_REQUEST['redirect_url']) && (substr($_REQUEST['redirect_url'], 0, strlen(OC::$WEBROOT)) == OC::$WEBROOT || $_REQUEST['redirect_url'][0] == '/')) {
- header( 'Location: '.$_REQUEST['redirect_url']);
+ $location = $_REQUEST['redirect_url'];
}
else if (isset(OC::$REQUESTEDAPP) && !empty(OC::$REQUESTEDAPP)) {
- header( 'Location: '.OC::$WEBROOT.'/?app='.OC::$REQUESTEDAPP );
+ $location = OC::$WEBROOT.'/?app='.OC::$REQUESTEDAPP;
}
else {
- header( 'Location: '.OC::$WEBROOT.'/'.OC_Appconfig::getValue('core', 'defaultpage', '?app=files'));
+ $location = OC::$WEBROOT.'/'.OC_Appconfig::getValue('core', 'defaultpage', '?app=files');
}
+ OC_Log::write('core', 'redirectToDefaultPage: '.$location, OC_Log::DEBUG);
+ header( 'Location: '.$location );
exit();
}