mirror of
https://tildegit.org/sbgodin/HtmGem.git
synced 2023-08-25 13:53:12 +02:00
Removes unuseful case
This commit is contained in:
parent
0e508a7d57
commit
b7276e12e3
@ -27,7 +27,6 @@ $documentRoot = $_SERVER['DOCUMENT_ROOT'];
|
||||
$filePath = rtrim($_SERVER['DOCUMENT_ROOT'], "/")."/".ltrim($url, "/");
|
||||
|
||||
switch(true) {
|
||||
case false:
|
||||
case !realPath($filePath):
|
||||
case !preg_match("/\.gmi$/", $url): # not finishing by .gmi
|
||||
case strpos($filePath, $documentRoot)!==0: # not in web directory
|
||||
|
Loading…
x
Reference in New Issue
Block a user