aufgerufenes Modul muss eine Datei sein.
bernd

bernd commited on 2007-07-01 17:27:44
Zeige 1 geänderte Dateien mit 1 Einfügungen und 1 Löschungen.


git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@527 87cf0b9e-d624-0410-a070-f6ee81989793
... ...
@@ -8,7 +8,7 @@ $go = $_GET['go'];
8 8
  sanitize $go
9 9
 */
10 10
 
11
-if (strstr($go, "..") or strstr($go, "./") or strstr($go, ":") or (! file_exists("modules/$go")))
11
+if (strstr($go, "..") or strstr($go, "./") or strstr($go, ":") or (! file_exists("modules/$go")) or (! is_file("modules/$go")))
12 12
 {
13 13
   die("illegal command");
14 14
 }
15 15