Skip to content

Commit

Permalink
Do not decode url when redirecting (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
labkode authored Jun 16, 2017
1 parent 50faaf1 commit 44d74a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/util.php
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ public static function getDefaultPageUrl() {
// Deny the redirect if the URL contains a @
// This prevents unvalidated redirects like ?redirect_url=:[email protected]
if (isset($_REQUEST['redirect_url']) && strpos($_REQUEST['redirect_url'], '@') === false) {
$location = $urlGenerator->getAbsoluteURL(urldecode($_REQUEST['redirect_url']));
$location = $urlGenerator->getAbsoluteURL($_REQUEST['redirect_url']);
} else {
$defaultPage = \OC::$server->getAppConfig()->getValue('core', 'defaultpage');
if ($defaultPage) {
Expand Down

0 comments on commit 44d74a0

Please sign in to comment.