소스 검색

SQLql injection patch by Pedro Laguna

pecesama 19 년 전
부모
커밋
58d6c6b442
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      index.php

+ 1 - 1
index.php 파일 보기

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 {