[pmwiki-users] Issue with blocklist regex (for /\bcialis\b/), blocking word spécialisé

Petko Yotov 5ko at 5ko.fr
Mon May 2 19:34:04 CDT 2016


If your PHP installation permits it, you can use the /u (Unicode/utf8) 
modifier:

   block:/\bcialis\b/u

Some installations crash or hang, so test it.

Additionally, you may need to set the locale to French/UTF-8:

   setlocale(LC_ALL,'fr_FR.UTF-8');

(unless your XLPage page takes care of it, eg. you see the diff dates in 
French)


If that doesn't help, remove the block: line. If your wiki automatically 
downloads the blocklist, you can unblock some expressions locally, in 
your Blocklist page, use the expression

   unblock:/\bcialis\b/

See http://www.pmwiki.org/wiki/PmWiki/Blocklist#unblock .

Petko

---
Change log     :  http://www.pmwiki.org/wiki/PmWiki/ChangeLog
Release notes  :  http://www.pmwiki.org/wiki/PmWiki/ReleaseNotes
If you upgrade :  http://www.pmwiki.org/wiki/PmWiki/Upgrades


On 2016-05-03 01:16, ABClf wrote:
> Not a big issue, but a strange one : my blocklist has an entry copied
> from PmWiki's :
> 
> block:/\bcialis\b/
> 
> This wrongly blocks the word "spécialisé" on my website whereas
> everything is fine in PmWiki, where "spécialisé" is allowed, as
> expected.
> (Can check the issue in www.languefrancaise/Test group).
> 
> Does anyone have an idea why I encounter such an issue ? It looks like
> the boundaries of the regex (only block full word) is not well
> interpreted on my host. (Yet it should be working :
> http://www.languefrancaise.net/phpinfo.php)
> 
> In top of my config :
> $EnableBlocklist           = 1;          # This tells PmWiki to scan
> the SiteAdmin.Blocklist page and the SiteAdmin.Blocklist-Farm
> $EnableWhyBlocked          = 1;
> 



More information about the pmwiki-users mailing list