Skip to content
Permalink
Browse files

Blocked domains fix

  • Loading branch information...
ssl committed Jun 13, 2019
1 parent 2bf3c5d commit 90112f35cec64d5c1e020cbe7646e14eb51804f5
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/Route.php
@@ -76,13 +76,13 @@ public function callback($phpInput) {
$setting[$settings['setting']] = $settings['value'];
}
if($json->origin == $setting['blocked-domains'] || in_array($json->origin, explode(',', $setting['blocked-domains']))) {
return 'github.com/ssl/ezXSS';
}
$userIp = isset($json->shared) ? $json->ip : (isset($_SERVER['HTTP_CF_CONNECTING_IP']) ? $_SERVER['HTTP_CF_CONNECTING_IP'] : $_SERVER['REMOTE_ADDR']);
$domain = htmlspecialchars($_SERVER['SERVER_NAME']);
$json->origin = str_replace(['https://', 'http://'], '', $json->origin);
if($json->origin == $setting['blocked-domains'] || in_array($json->origin, explode(',', $setting['blocked-domains']))) {
return 'github.com/ssl/ezXSS';
}
$doubleReport = false;
if($setting['filter-save'] == 0 || $setting['filter-alert'] == 0) {

2 comments on commit 90112f3

@geeknik

This comment has been minimized.

Copy link

replied Jun 13, 2019

Thanks for the quick fix. Dropped a little something in your tip jar. (;

@ssl

This comment has been minimized.

Copy link
Owner Author

replied Jun 14, 2019

@geeknik NP. Thanks for the tip, I appreciate it.

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