mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Make pcre_extend work, and cover PCRE filtering with tests
The filter walked its list of access rules but tested the first entry each time round, so anything pcre_extend appended was never consulted and the command did nothing at all. Test the entry the loop is on. pcre_extend takes an ACE and no FILTER_ACTION - the rule keeps the action it was given - so correct the manual, which documented an argument the command does not read. The tests cover matching and denial, rule order, client headers, matching options, the access rule a pcre rule carries, pcre_extend, and rewriting a reply header and reply data. Request rewriting is covered through an HTTP parent, which is the path where it reaches the wire.
This commit is contained in:
1 parent
fc544c4dff
commit
cdbd47dc5b
3 files changed
+115
-2
No files matched your search
+1
-1
@@ -1435,7 +1435,7 @@ Apply a rule for matching regular expression.
|
||||
Match and replace with rewrite expression.
|
||||
.br
|
||||
.BR pcre_extend
|
||||
\fIFILTER_ACTION [ACE]\fR
|
||||
\fIACE\fR
|
||||
.br
|
||||
Extend the ACL of the last pcre or pcre_rewrite command by adding an additional ACE.
|
||||
.br
|
||||
|
||||
Reference in new issue
Block a user