summaryrefslogtreecommitdiffstats
path: root/lib/util.php
diff options
context:
space:
mode:
authorMarvin Thomas Rabe <m.rabe@echtzeitraum.de>2011-10-04 19:27:57 +0200
committerMarvin Thomas Rabe <m.rabe@echtzeitraum.de>2011-10-04 19:27:57 +0200
commit33f24a42b88ede5135ab2118077a25a6c479201b (patch)
tree463ed45ba7f1932920564457423894e6130ea87a /lib/util.php
parent314e84716b5b0d2449412cfcdc9e8c2aff9ea665 (diff)
downloadnextcloud-server-33f24a42b88ede5135ab2118077a25a6c479201b.tar.gz
nextcloud-server-33f24a42b88ede5135ab2118077a25a6c479201b.zip
redirect url fixed
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index 5d03c56f18e..f8748e868c1 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -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();
}
}