Browse Source

SQLql injection patch by Pedro Laguna

pecesama 17 years ago
parent
commit
58d6c6b442
1 changed files with 1 additions and 1 deletions
  1. 1 1
      index.php

+ 1 - 1
index.php View File

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