Sub-dir was prepended twice

This commit is contained in:
Thomas Tanghus 2014-03-29 20:40:49 +01:00
parent 3a7829f784
commit 7278f2f567
1 changed files with 1 additions and 1 deletions

View File

@ -703,7 +703,7 @@ class OC_Util {
public static function redirectToDefaultPage() {
$urlGenerator = \OC::$server->getURLGenerator();
if(isset($_REQUEST['redirect_url'])) {
$location = $urlGenerator->getAbsoluteURL(urldecode($_REQUEST['redirect_url']));
$location = urldecode($_REQUEST['redirect_url']);
}
else if (isset(OC::$REQUESTEDAPP) && !empty(OC::$REQUESTEDAPP)) {
$location = $urlGenerator->getAbsoluteURL('/index.php/apps/'.OC::$REQUESTEDAPP.'/index.php');