File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -480,8 +480,8 @@ public function htmlentities($value) {
480480
481481 // Function to check paths before we use it as include. Use with absolute paths only.
482482 public function check_include_path ($ path ) {
483- if (strpos ($ path ,'// ' ) = == false ) die ('Include path seems to be an URL: ' .$ this ->htmlentities ($ path ));
484- if (strpos ($ path ,'.. ' ) = == false ) die ('Two dots are not allowed in include path: ' .$ this ->htmlentities ($ path ));
483+ if (strpos ($ path ,'// ' ) ! == false ) die ('Include path seems to be an URL: ' .$ this ->htmlentities ($ path ));
484+ if (strpos ($ path ,'.. ' ) ! == false ) die ('Two dots are not allowed in include path: ' .$ this ->htmlentities ($ path ));
485485 if (!preg_match ("/^[a-zA-Z0-9_\/\.\-]+$/ " , $ path )) die ('Wrong chars in include path: ' .$ this ->htmlentities ($ path ));
486486 $ path = realpath ($ path );
487487 if ($ path == '' ) die ('Include path does not exist. ' );
You can’t perform that action at this time.
0 commit comments