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

ABClf languefrancaise at gmail.com
Mon May 2 20:09:51 CDT 2016


Bingo, "é" was the culprit, good shot ;
just writing
block:/\bcialis\b/u
in blocklist makes the job done.

(Yes, I've got already the locale set to french utf-8 in XLPage :
  ### Character encoding, e.g. 'iso-8859-2' or 'utf-8'
  'xlpage-i18n' => 'utf-8',
  ### Locale identifier, e.g. 'de' or 'cs_CZ.ISO-8859-2'
  'Locale' => 'fr_FR.utf8',)

One more question, do I have to add /u at the end of all possible
regex set up with word "boundaries" ?

Thank you.

2016-05-03 2:34 GMT+02:00 Petko Yotov <5ko at 5ko.fr>:
> 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;
>>
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users



More information about the pmwiki-users mailing list