Content filter and regex flags

Robert Leftwich <[email protected]> Thu, 27 Nov 2003 08:03:34 +1100
Newsgroups gmane.comp.web.mod-pubsub.devel
Message-ID <[email protected]>
I'm using kn_content_filter to specify some server-side filtering and in 
some cases the filter regex will only work if some additional flags are 
specified when compiling it (e.g. DOTALL, MULTILINE mode, etc). To do this 
I added a new kn_content_filter_flags element which can be used to specify 
the required combination of flags (in integer form) which, if present, is 
passed to the call to re.compile() in pubsub.py.

The reason for the email is to make sure that this is acceptable to all 
before committing it, in particular it might cause incompatibilities with 
the Perl server or for that matter the existing KN product as KN may have 
implemented it another way.

Any comments would be welcome.

Robert
(attempting to fire up again after an extended hiatus...)


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.543 / Virus Database: 337 - Release Date: 21/11/2003