Description

The regular expressions in /BadContent are meant for checking links. Therefore the regular expressions all include a dot. There is one exception which is the regular expression checking for paid or online followed by surveys. I think this is a bug.

Reported by Barry Cornelius (barry.cornelius@oucs.ox.ac.uk).

Steps to reproduce

Try to create a wiki page saying:

How do I go about making simple X Y if I'm not a techie?

where you actually type online where I've written X and surveys instead of Y. When you go to save it, it moans saying:

Sorry, can not save page because "X Y" is not allowed in this wiki.

where X is replaced by the word online and Y is replaced by surveys.

Sorry about this convoluted way of describing this but this wiki also does not you to type online immediately followed by surveys.

Details

The problem is that the file /BadContent contains:

(paid|online)\s+surveys

All the regular expressions in this file apart from this one check that strings are separated by a dot. I suggest that the above is replaced by:

(paid|online)[\w\-_.]*surveys[\w\-_.]*\.[a-z]{2,}

Workaround

With the above example, you work around the problem by using:

How do I go about making simple online surv{{{

eys if I'm not a techie?}}} However, this trick does not work if you want to use these two words in a headline.

Discussion

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/BadContentNeedsDotForOnlineSurveys (last edited 2007-10-29 19:06:14 by localhost)