This commit is contained in:
Roly Rudy Gutierrez Pinto
2017-02-09 17:55:37 -04:00
parent 9101a84581
commit e8dc039a25
2 changed files with 5 additions and 1 deletions

View File

@@ -117,6 +117,10 @@ if (file_exists($requestFile)) {
header( "location: /errors/error404.php?url=" . urlencode( $_SERVER['REQUEST_URI'] ) );
die;
}
if ($request === "app.php" || $request === "sysGeneric.php") {
//HTTP/1.0 403 Forbidden
http_response_code(403);
}
$pos = strripos($request, ".") + 1;
$size = strlen($request);
if($pos < $size) {