Make pcre_extend work

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.
This commit is contained in:
Vladimir Dubrovin 2026-08-26 16:55:37 +03:00
parent 0df93bfab7
commit 3422f780bf

View File

@ -277,7 +277,7 @@ static FILTER_ACTION pcre_filter_buffer(void *fc, struct clientparam *param, uns
#define pcrefd ((struct pcre_filter_data *)fc) #define pcrefd ((struct pcre_filter_data *)fc)
for(acl = pcrefd->acl; acl; acl=acl->next){ for(acl = pcrefd->acl; acl; acl=acl->next){
if(pl->ACLMatches(pcrefd->acl, param)){ if(pl->ACLMatches(acl, param)){
match = 1; match = 1;
break; break;
} }