Parcourir la source

SQLql injection patch by Pedro Laguna

pecesama il y a 18 ans
Parent
révision
58d6c6b442
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      index.php

+ 1 - 1
index.php Voir le fichier

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 {