소스 검색

补丁

pull/12/head
xushubieli 3 년 전
부모
커밋
7e01c6db92
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. +2
    -2
      src/include/dedesqli.class.php
  2. +2
    -2
      src/include/dedesqlite.class.php

+ 2
- 2
src/include/dedesqli.class.php 파일 보기

@@ -602,7 +602,7 @@ if (!function_exists('CheckSql')) {
//$notallow2 = "--|/\*";
if (preg_match("/".$notallow1."/i", $db_string)) {
fputs(fopen($log_file, 'a+'), "$userIP||$getUrl||$db_string||SelectBreak\r\n");
exit("<font size='5' color='red'>Safe Alert: Request Error step 1 !</span>");
exit("<span>Safe Alert: Request Error step 1 !</span>");
}
}
@@ -673,7 +673,7 @@ if (!function_exists('CheckSql')) {
}
if (!empty($fail)) {
fputs(fopen($log_file, 'a+'), "$userIP||$getUrl||$db_string||$error\r\n");
exit("<font size='5' color='red'>Safe Alert: Request Error step 2!</span>");
exit("<span>Safe Alert: Request Error step 2!</span>");
} else {
return $db_string;
}


+ 2
- 2
src/include/dedesqlite.class.php 파일 보기

@@ -609,7 +609,7 @@ if (!function_exists('CheckSql')) {
//$notallow2 = "--|/\*";
if (preg_match("/".$notallow1."/i", $db_string)) {
fputs(fopen($log_file, 'a+'), "$userIP||$getUrl||$db_string||SelectBreak\r\n");
exit("<font size='5' color='red'>Safe Alert: Request Error step 1 !</span>");
exit("<span>Safe Alert: Request Error step 1 !</span>");
}
}
@@ -680,7 +680,7 @@ if (!function_exists('CheckSql')) {
}
if (!empty($fail)) {
fputs(fopen($log_file, 'a+'), "$userIP||$getUrl||$db_string||$error\r\n");
exit("<font size='5' color='red'>Safe Alert: Request Error step 2!</span>");
exit("<span>Safe Alert: Request Error step 2!</span>");
} else {
return $db_string;
}


불러오는 중...
취소
저장