Skip to content

Commit

Permalink
All redirects to external sites will now display a redirect warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Seth Croston Barber committed Aug 22, 2018
1 parent 3e6700d commit 47ad4ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions system/ee/legacy/libraries/Redirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
$url_host = empty($url_parts['host']) ? '' : $url_parts['host'];

if ($force_redirect == TRUE
OR ! stristr($url_host, $host) // external link
OR ( ! $referrer_parts OR ! stristr($referrer_parts['host'], $host)))
{
// Possibly not from our site, so we give the user the option
Expand Down

0 comments on commit 47ad4ea

Please sign in to comment.