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, "/");
|
$filePath = rtrim($_SERVER['DOCUMENT_ROOT'], "/")."/".ltrim($url, "/");
|
||||||
|
|
||||||
switch(true) {
|
switch(true) {
|
||||||
case false:
|
|
||||||
case !realPath($filePath):
|
case !realPath($filePath):
|
||||||
case !preg_match("/\.gmi$/", $url): # not finishing by .gmi
|
case !preg_match("/\.gmi$/", $url): # not finishing by .gmi
|
||||||
case strpos($filePath, $documentRoot)!==0: # not in web directory
|
case strpos($filePath, $documentRoot)!==0: # not in web directory
|
||||||
|
|
Loading…
Reference in New Issue