View Issue Details

IDProjectCategoryView StatusLast Update
0006002unrealircdpublic2021-11-19 19:30
Reportersrhuston Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
PlatformLinuxOSRHELOS Version7
Product Version6.0.0-beta2 
Summary0006002: SPAMFILTER regex fails to match
DescriptionSimilarly to 0005913 I had trouble getting spamfilters to match, including the very example given in the helpop output. I finally tried using the regex ".*come to irc\..+\..+.*" instead of the provided "/come to irc\..+\..+/" and was able to make it work properly. I then edited the regex to make it slightly more complex which also worked. It seems like the PCRE '/.../' delimiters aren't working perhaps? I tried to trace through the code to look more but my C is quite rusty anymore.
Steps To Reproduce* /spamfilter add -regex cN gzline 1d No_advertising_please /come to irc\..+\..+/
* say "come to irc.foo.bar" in channel
* nothing happens
* /spamfilter add -regex cN gzline 1d No_advertising_please .*come to irc\..+\..+.*
* say "come to irc.foo.bar" in channel
* B&
TagsNo tags attached.
3rd party modules

Activities

syzop

2021-11-18 17:03

administrator   ~0022192

Could not find something quickly in https://www.pcre.org/changelog.txt but I may have glanced over it.

Which PCRE2 version are you using? You can tell from the boot screen (eg "./unrealircd configtest")

srhuston

2021-11-18 18:20

reporter   ~0022193

* PCRE2 10.36 2020-12-04

Looking through config.log I think it was packaged with the git clone? The system version on the machine is pcre-8.32-17.el7.x86_64 so I don't think it linked to that one:

PCRE2_CFLAGS='-I/home/ircd/Installs/unrealircd/unrealircd.git/extras/pcre2/include'

syzop

2021-11-19 19:30

administrator   ~0022194

Have not looked at this yet, but, for what its worth, the PCRE2 versions in UnrealIRCd 5 and UnrealIRCd 6 are currently both at 10.36.
It is at 10.36 since March 8 2021, which is 5.0.9.

Issue History

Date Modified Username Field Change
2021-11-17 17:47 srhuston New Issue
2021-11-18 16:00 syzop Severity minor => major
2021-11-18 17:03 syzop Note Added: 0022192
2021-11-18 18:20 srhuston Note Added: 0022193
2021-11-19 19:30 syzop Note Added: 0022194