diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-12-18 14:55:19 -0800 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-12-18 14:55:19 -0800 |
commit | ed5ca9e4ccb2741c33ac2c88082728066bc715fb (patch) | |
tree | 7bc03907da16c69d8beeae09c8d6408d856a19aa /include/comanche.php | |
parent | 8d61efa0e865203df5eb4fae90b7bbd48597cf03 (diff) | |
download | volse-hubzilla-ed5ca9e4ccb2741c33ac2c88082728066bc715fb.tar.gz volse-hubzilla-ed5ca9e4ccb2741c33ac2c88082728066bc715fb.tar.bz2 volse-hubzilla-ed5ca9e4ccb2741c33ac2c88082728066bc715fb.zip |
use realpath to bypass symlinks and check actually directory
Diffstat (limited to 'include/comanche.php')
-rw-r--r-- | include/comanche.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/comanche.php b/include/comanche.php index 5bffc3dbf..1537226ca 100644 --- a/include/comanche.php +++ b/include/comanche.php @@ -287,7 +287,7 @@ function comanche_widget($name, $text) { if(! function_exists($func)) { if(file_exists('widget/' . trim($name) . '.php')) require_once('widget/' . trim($name) . '.php'); - elseif(is_dir('widget/'. trim($name)) + elseif(folder_exists('widget/'. trim($name)) && (file_exists('widget/' . trim($name) . '/' . trim($name) . '.php'))) require_once('widget/' . trim($name) . '/' . trim($name) . '.php'); } |