wafris 1.1.1 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lua/dist/wafris_core.lua +6 -1
- data/lib/wafris/log_suppressor.rb +1 -1
- data/lib/wafris/version.rb +1 -1
- metadata +17 -42
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 389651499912f24676b1254c9a5f4dc2b1093e441a47da4a288a657020bc3494
|
4
|
+
data.tar.gz: 9801b9f106f043b03816cee5ea26e3a85fc1f3f0ea0e572ffc0e4060368bfe78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ed5770968fc34f646830d45596f5035134bdf741d0d44cafe82b13386b370621a6071b992c54d26997e07a5098ed1b136b6dc9fc6fe2122345877017284631c
|
7
|
+
data.tar.gz: 81e1e4fe9e4d01ee137a9ff1ee14e7b4422b20ad237a91f7611c3a0855d73b0d08deccf1cb53950ee58e10e55e1e6a485ff36f8e738524211acbe7460d494f2d
|
@@ -73,13 +73,18 @@ local function ip_in_cidr_range(cidr_set, ip_decimal_lexical)
|
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
76
|
+
local function escapePattern(s)
|
77
|
+
local patternSpecials = "[%^%$%(%)%%%.%[%]%*%+%-%?]"
|
78
|
+
return s:gsub(patternSpecials, "%%%1")
|
79
|
+
end
|
80
|
+
|
76
81
|
local function match_by_pattern(property_abbreviation, property_value)
|
77
82
|
local hash_name = "rules-blocked-" .. property_abbreviation
|
78
83
|
|
79
84
|
local patterns = redis.call('HKEYS', hash_name)
|
80
85
|
|
81
86
|
for _, pattern in ipairs(patterns) do
|
82
|
-
if string.find(property_value, pattern) then
|
87
|
+
if string.find(string.lower(property_value), string.lower(escapePattern(pattern))) then
|
83
88
|
return pattern
|
84
89
|
end
|
85
90
|
end
|
data/lib/wafris/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wafris
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Micahel Buckbee
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-09-
|
12
|
+
date: 2023-09-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: connection_pool
|
@@ -49,9 +49,6 @@ dependencies:
|
|
49
49
|
name: redis
|
50
50
|
requirement: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '4.8'
|
55
52
|
- - ">="
|
56
53
|
- !ruby/object:Gem::Version
|
57
54
|
version: 4.8.0
|
@@ -59,9 +56,6 @@ dependencies:
|
|
59
56
|
prerelease: false
|
60
57
|
version_requirements: !ruby/object:Gem::Requirement
|
61
58
|
requirements:
|
62
|
-
- - "~>"
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
version: '4.8'
|
65
59
|
- - ">="
|
66
60
|
- !ruby/object:Gem::Version
|
67
61
|
version: 4.8.0
|
@@ -103,82 +97,58 @@ dependencies:
|
|
103
97
|
name: rack-test
|
104
98
|
requirement: !ruby/object:Gem::Requirement
|
105
99
|
requirements:
|
106
|
-
- - "~>"
|
107
|
-
- !ruby/object:Gem::Version
|
108
|
-
version: '2.0'
|
109
100
|
- - ">="
|
110
101
|
- !ruby/object:Gem::Version
|
111
|
-
version:
|
102
|
+
version: '0.6'
|
112
103
|
type: :development
|
113
104
|
prerelease: false
|
114
105
|
version_requirements: !ruby/object:Gem::Requirement
|
115
106
|
requirements:
|
116
|
-
- - "~>"
|
117
|
-
- !ruby/object:Gem::Version
|
118
|
-
version: '2.0'
|
119
107
|
- - ">="
|
120
108
|
- !ruby/object:Gem::Version
|
121
|
-
version:
|
109
|
+
version: '0.6'
|
122
110
|
- !ruby/object:Gem::Dependency
|
123
111
|
name: rails
|
124
112
|
requirement: !ruby/object:Gem::Requirement
|
125
113
|
requirements:
|
126
|
-
- - "~>"
|
127
|
-
- !ruby/object:Gem::Version
|
128
|
-
version: '7.0'
|
129
114
|
- - ">="
|
130
115
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
116
|
+
version: '5.0'
|
132
117
|
type: :development
|
133
118
|
prerelease: false
|
134
119
|
version_requirements: !ruby/object:Gem::Requirement
|
135
120
|
requirements:
|
136
|
-
- - "~>"
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '7.0'
|
139
121
|
- - ">="
|
140
122
|
- !ruby/object:Gem::Version
|
141
|
-
version:
|
123
|
+
version: '5.0'
|
142
124
|
- !ruby/object:Gem::Dependency
|
143
125
|
name: railties
|
144
126
|
requirement: !ruby/object:Gem::Requirement
|
145
127
|
requirements:
|
146
|
-
- - "~>"
|
147
|
-
- !ruby/object:Gem::Version
|
148
|
-
version: '7.0'
|
149
128
|
- - ">="
|
150
129
|
- !ruby/object:Gem::Version
|
151
|
-
version:
|
130
|
+
version: '5.0'
|
152
131
|
type: :development
|
153
132
|
prerelease: false
|
154
133
|
version_requirements: !ruby/object:Gem::Requirement
|
155
134
|
requirements:
|
156
|
-
- - "~>"
|
157
|
-
- !ruby/object:Gem::Version
|
158
|
-
version: '7.0'
|
159
135
|
- - ">="
|
160
136
|
- !ruby/object:Gem::Version
|
161
|
-
version:
|
137
|
+
version: '5.0'
|
162
138
|
- !ruby/object:Gem::Dependency
|
163
139
|
name: rake
|
164
140
|
requirement: !ruby/object:Gem::Requirement
|
165
141
|
requirements:
|
166
|
-
- - "~>"
|
167
|
-
- !ruby/object:Gem::Version
|
168
|
-
version: '13.0'
|
169
142
|
- - ">="
|
170
143
|
- !ruby/object:Gem::Version
|
171
|
-
version:
|
144
|
+
version: '12.0'
|
172
145
|
type: :development
|
173
146
|
prerelease: false
|
174
147
|
version_requirements: !ruby/object:Gem::Requirement
|
175
148
|
requirements:
|
176
|
-
- - "~>"
|
177
|
-
- !ruby/object:Gem::Version
|
178
|
-
version: '13.0'
|
179
149
|
- - ">="
|
180
150
|
- !ruby/object:Gem::Version
|
181
|
-
version:
|
151
|
+
version: '12.0'
|
182
152
|
description:
|
183
153
|
email:
|
184
154
|
executables: []
|
@@ -196,8 +166,13 @@ homepage:
|
|
196
166
|
licenses:
|
197
167
|
- Elastic-2.0
|
198
168
|
metadata: {}
|
199
|
-
post_install_message:
|
200
|
-
|
169
|
+
post_install_message: |2+
|
170
|
+
Thank you for installing the wafris gem.
|
171
|
+
|
172
|
+
If you haven't already, please sign up for Wafris Hub at:
|
173
|
+
|
174
|
+
https://wafris.org
|
175
|
+
|
201
176
|
rdoc_options: []
|
202
177
|
require_paths:
|
203
178
|
- lib
|