Skip to content
Permalink
Browse files

Merge pull request #555 from phpList/bugfix/19973-reload-page-on-acce…

…ssdenied

reload the page on access denied
  • Loading branch information...
samtuke committed Jul 4, 2019
2 parents 0da7eb4 + dd604d4 commit 57c0a4d2b9717005878edb0167e616e804ade659
Showing with 1 addition and 1 deletion.
  1. +1 −1 public_html/lists/admin/index.php
@@ -241,7 +241,7 @@ function mb_strtolower($string)
$ref = parse_url($_SERVER['HTTP_REFERER']);
$parts = explode(':', $_SERVER['HTTP_HOST']);
if ($ref['host'] != $parts[0] && !in_array($ref['host'], $allowed_referrers)) {
echo 'Access denied';
echo 'Access denied <script type="text/javascript">document.location = document.location</script>';
exit;
}
}

0 comments on commit 57c0a4d

Please sign in to comment.
You can’t perform that action at this time.