Update database.php
This commit is contained in:
parent
c38ea4bb68
commit
c586ee2001
|
@ -322,10 +322,10 @@ if(!is_fn("get_bind_to_sql_insert")) {
|
|||
}
|
||||
|
||||
// preventing incident query
|
||||
if($num_duplicates > 0)
|
||||
if($num_duplicates > 0) {
|
||||
$num_conditions = array_sum(array($num_keys, $num_wheres));
|
||||
if($num_conditions == 0 && $safemode_off !== true) {
|
||||
write_common_log("suspicious incident query. blocked. (safemode=1)", "system/database");
|
||||
write_common_log("this is suspicious incident query. blocked. (safemode=1)", "system/database");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user