| 9 |
|
|
| 10 |
function check_input_data(string $input_str, string $id_str, array & $result_set, int $max_line_cnt) : bool |
function check_input_data(string $input_str, string $id_str, array & $result_set, int $max_line_cnt) : bool |
| 11 |
{ |
{ |
| 12 |
$r_input_str = check_badwords($input_str, "****"); |
$bw_count = 0; |
| 13 |
if ($input_str != $r_input_str) |
$r_input_str = check_badwords($input_str, "****", $bw_count); |
| 14 |
|
if ($bw_count > 0) |
| 15 |
{ |
{ |
| 16 |
$result_set["return"]["code"] = -1; |
$result_set["return"]["code"] = -1; |
| 17 |
array_push($result_set["return"]["errorFields"], array( |
array_push($result_set["return"]["errorFields"], array( |