ソースを参照

补丁

pull/12/head
xushubieli 2年前
コミット
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;
}


読み込み中…
キャンセル
保存