mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +00:00
check if not found file is actually a file
This commit is contained in:
parent
4f34ff5c5c
commit
b4fd9ac804
|
@ -38,7 +38,7 @@ if(true) {
|
||||||
$file = $uri->getPath();
|
$file = $uri->getPath();
|
||||||
else
|
else
|
||||||
$file = substr($uri->getPath(), 1);
|
$file = substr($uri->getPath(), 1);
|
||||||
if(file_exists($file)) {
|
if(file_exists($file) && is_file($file)) {
|
||||||
$_SERVER['SCRIPT_FILENAME'] = basename($file);
|
$_SERVER['SCRIPT_FILENAME'] = basename($file);
|
||||||
include($file);
|
include($file);
|
||||||
exit;
|
exit;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user