Browse code

aufgerufenes Modul muss eine Datei sein.

git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@527 87cf0b9e-d624-0410-a070-f6ee81989793

bernd authored on01/07/2007 17:27:44
Showing1 changed files
... ...
@@ -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
 }