Ver código fonte

SQLql injection patch by Pedro Laguna

pecesama 16 anos atrás
pai
commit
58d6c6b442
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      index.php

+ 1 - 1
index.php Ver arquivo

@@ -25,7 +25,7 @@ $template = new plantillas($conf->template);
25 25
 
26 26
         if (isset($_GET["post"])) {
27 27
                 $id_post = $_GET["post"];
28
-                if (!is_numeric($id_post) && $id_post < 1 ){
28
+                if (!is_numeric($id_post) || $id_post < 1 ){
29 29
                 	header("Location: index.php");
30 30
                 }
31 31
         } else {