Browse code

avoid PHP warnings when argument is no string

Hanno Böck authored on02/02/2020 12:12:24
Showing1 changed files
... ...
@@ -22,7 +22,7 @@ require_once("inc/theme.php");
22 22
 
23 23
 set_exception_handler('handle_exception');
24 24
 
25
-if (!isset($_GET['go'])) {
25
+if (!isset($_GET['go']) || !is_string($_GET['go'])) {
26 26
     die("No command");
27 27
 }
28 28
 $go = $_GET['go'];