PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / V3.3.2
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder vV3.3.2
V3.3.2 3.3.1 V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 All 139 releases
← All changes | includes/Core/Util/EntryLimitHelper.php +2 -2 3.1.0 → V3.3.2 View file →
@@ -139,9 +139,9 @@
139 139 $condition = ['form_id' => $this->formId];
140 140
141 141 // Add user condition
142 142 if ('per_user_ip' === $userType) {
143 - $condition['user_ip'] = ip2long($userValue);
143 + $condition['user_ip'] = IpTool::storageValue($userValue);
144 144 } elseif ('per_user_id' === $userType) {
145 145 $condition['user_id'] = $userValue;
146 146 } else {
147 147 return 0;
@@ -166,9 +166,9 @@
166 166 $formEntry = new FormEntryModel();
167 167
168 168 $condition = [
169 169 'form_id' => $this->formId,
170 - 'user_ip' => ip2long($ipAddress)
170 + 'user_ip' => IpTool::storageValue($ipAddress)
171 171 ];
172 172
173 173 // Burst timeframes use different intervals
174 174 $burstIntervals = [