Update database.php

This commit is contained in:
Namhyeon Go 2020-04-12 18:36:37 +09:00 committed by GitHub
parent c38ea4bb68
commit c586ee2001
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}