Check for redirect_url for logged in users
This checks if there is a redirect_url for logged in users
This commit is contained in:
parent
81f019b6c5
commit
822e4d5f6c
1 changed files with 7 additions and 0 deletions
|
@ -490,6 +490,13 @@ class OC{
|
|||
require_once 'setup.php';
|
||||
exit();
|
||||
}
|
||||
// Handle redirect URL for logged in users
|
||||
if(isset($_REQUEST['redirect_url']) && OC_User::isLoggedIn()) {
|
||||
$location = OC_Helper::makeURLAbsolute(urldecode($_REQUEST['redirect_url']));
|
||||
header( 'Location: '.$location );
|
||||
return;
|
||||
}
|
||||
|
||||
// Handle WebDAV
|
||||
if($_SERVER['REQUEST_METHOD']=='PROPFIND') {
|
||||
header('location: '.OC_Helper::linkToRemote('webdav'));
|
||||
|
|
Loading…
Reference in a new issue