Skip to content

Commit

Permalink
SECURITY, fixing a possible phishing exploit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Glasl committed Feb 16, 2017
1 parent 573d695 commit b065ebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/extensions/SecurityLoginExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public function onBeforeSecurityLogin() {
// Determine whether a user has already authenticated, and whether a back URL exists.

$URL = $this->owner->getRequest()->getVar('BackURL');
if(Member::currentUserID() && $URL) {
if(Member::currentUserID() && $URL && Director::is_site_url($URL)) {

// Take the user to the back URL.

Expand Down

0 comments on commit b065ebd

Please # to comment.