Browse code

add note about PHP bug that causes invalid open_basedir warnings

Hanno Böck authored on02/02/2020 13:29:17
Showing1 changed files
... ...
@@ -38,6 +38,8 @@ if (substr($go, strlen($go) - 4) == '.php') {
38 38
 
39 39
 DEBUG($go);
40 40
 
41
+// Can throw invalid open_basedir warnings,
42
+// see https://bugs.php.net/52065
41 43
 if (strstr($go, "..") or strstr($go, "./") or strstr($go, ":") or (! file_exists("modules/$go.php")) or (! is_file("modules/$go.php"))) {
42 44
     die("illegal command");
43 45
 }