mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Fixed deprecatevar. See #59.
This commit is contained in:
@@ -1147,7 +1147,7 @@ static apr_status_t msre_action_deprecatevar_execute(modsec_rec *msr, apr_pool_t
|
||||
* time elapsed since the last update.
|
||||
*/
|
||||
new_value = current_value -
|
||||
((current_time - last_update_time) * atoi(var_value) / atoi(s));
|
||||
(atoi(var_value) * ((current_time - last_update_time) / atoi(s)));
|
||||
if (new_value < 0) new_value = 0;
|
||||
|
||||
/* Only change the value if it differs. */
|
||||
|
Reference in New Issue
Block a user