File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
lib/Cleantalk/Common/Firewall Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
bitrix-antispam
2
2
===============
3
3
4
- 1C Bitrix anti-spam mod. 3.11.13
4
+ 1C Bitrix anti-spam mod. 3.11.14
5
5
6
6
Information page,
7
7
http://cleantalk.org/bitrix-antispam-module-bez-captcha
Original file line number Diff line number Diff line change 22
22
use Cleantalk \Common \Firewall \Modules \SFW ;
23
23
24
24
if ( ! defined ( 'CLEANTALK_USER_AGENT ' ) )
25
- define ( 'CLEANTALK_USER_AGENT ' , 'bitrix-31113 ' );
25
+ define ( 'CLEANTALK_USER_AGENT ' , 'bitrix-31114 ' );
26
26
27
27
define ('APBCT_TBL_FIREWALL_DATA ' , 'cleantalk_sfw ' ); // Table with firewall data.
28
28
define ('APBCT_TBL_FIREWALL_LOG ' , 'cleantalk_sfw_logs ' ); // Table with firewall logs.
Original file line number Diff line number Diff line change 1
1
<?php
2
2
$ arModuleVersion = array (
3
- "VERSION " => "3.11.13 " ,
4
- "VERSION_DATE " => "2021-04-05 10:00:00 "
3
+ "VERSION " => "3.11.14 " ,
4
+ "VERSION_DATE " => "2021-04-06 10:00:00 "
5
5
);
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ public function update()
89
89
if ( Get::get ('spbc_remote_call_action ' ) == 'sfw_update__write_base ' &&
90
90
! Get::get ('firewall_updating_id ' ) &&
91
91
$ fw_stats ['firewall_updating_id ' ] &&
92
- time () - $ fw_stats ['firewall_updating_last_start ' ] < 60 ){
92
+ time () - $ fw_stats ['firewall_updating_last_start ' ] < 0 ){
93
93
return true ;
94
94
}
95
95
@@ -107,7 +107,7 @@ public function update()
107
107
}
108
108
109
109
// Set new update ID
110
- if ( ! $ fw_stats ['firewall_updating_id ' ] || time () - $ fw_stats ['firewall_updating_last_start ' ] > 300 ) {
110
+ if ( Get:: get ( ' spbc_remote_call_action ' ) == ' sfw_update__write_base ' && ( ! $ fw_stats ['firewall_updating_id ' ] || time () - $ fw_stats ['firewall_updating_last_start ' ] > 300 )) {
111
111
$ helper ::setFwStats (
112
112
array (
113
113
'firewall_updating_id ' => md5 ( rand ( 0 , 100000 ) ),
You can’t perform that action at this time.
0 commit comments