1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-31 19:20:54 +00:00

Merge pull request #1602 from molikuner/development

Fix URL extension parsing
This commit is contained in:
Mcat12 2017-07-29 11:49:24 -04:00 committed by GitHub
commit 898fdf7a60

View File

@ -21,8 +21,9 @@ if ($serverName === 'pi.hole')
}
// Retrieve server URI extension (EG: jpg, exe, php)
// strtok($uri, '\?') splits the querystring from the path (if there is a querystring)
ini_set('pcre.recursion_limit',100);
$uriExt = pathinfo($uri, PATHINFO_EXTENSION);
$uriExt = pathinfo(strtok($uri,'\?'), PATHINFO_EXTENSION);
// Define which URL extensions get rendered as "Website Blocked"
$webExt = array('asp', 'htm', 'html', 'php', 'rss', 'xml');