Browse Source

补丁

pull/12/head
xushubieli 2 years ago
parent
commit
7e01c6db92
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      src/include/dedesqli.class.php
  2. +2
    -2
      src/include/dedesqlite.class.php

+ 2
- 2
src/include/dedesqli.class.php View File

@@ -602,7 +602,7 @@ if (!function_exists('CheckSql')) {
//$notallow2 = "--|/\*"; //$notallow2 = "--|/\*";
if (preg_match("/".$notallow1."/i", $db_string)) { if (preg_match("/".$notallow1."/i", $db_string)) {
fputs(fopen($log_file, 'a+'), "$userIP||$getUrl||$db_string||SelectBreak\r\n"); 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)) { if (!empty($fail)) {
fputs(fopen($log_file, 'a+'), "$userIP||$getUrl||$db_string||$error\r\n"); 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 { } else {
return $db_string; return $db_string;
} }


+ 2
- 2
src/include/dedesqlite.class.php View File

@@ -609,7 +609,7 @@ if (!function_exists('CheckSql')) {
//$notallow2 = "--|/\*"; //$notallow2 = "--|/\*";
if (preg_match("/".$notallow1."/i", $db_string)) { if (preg_match("/".$notallow1."/i", $db_string)) {
fputs(fopen($log_file, 'a+'), "$userIP||$getUrl||$db_string||SelectBreak\r\n"); 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)) { if (!empty($fail)) {
fputs(fopen($log_file, 'a+'), "$userIP||$getUrl||$db_string||$error\r\n"); 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 { } else {
return $db_string; return $db_string;
} }


Loading…
Cancel
Save