Skip to content

Commit

Permalink
! Weirdly, some spam bots (exploits?) also try to send huge protocol …
Browse files Browse the repository at this point in the history
…strings. Let's take care of those. (Security.php)
  • Loading branch information
Nao committed Feb 20, 2017
1 parent 13ec5ff commit a70a7cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/app/Security.php
Expand Up @@ -1265,7 +1265,7 @@ function checkUserBehavior()
'{db_prefix}log_intrusion',
array(
'id_member' => 'int', 'error_type' => 'string', 'ip' => 'int', 'event_time' => 'int', 'http_method' => 'string',
'request_uri' => 'string-255', 'protocol' => 'string', 'user_agent' => 'string-255', 'headers' => 'string', 'request_entity' => 'string',
'request_uri' => 'string-255', 'protocol' => 'string-10', 'user_agent' => 'string-255', 'headers' => 'string', 'request_entity' => 'string',
),
array(
MID, substr($context['behavior_error'], 6), get_ip_identifier($_SERVER['REMOTE_ADDR']), time(), $_SERVER['REQUEST_METHOD'],
Expand Down

0 comments on commit a70a7cf

Please sign in to comment.