r71517 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r71516‎ | r71517 | r71518 >
Date:22:22, 23 August 2010
Author:kaldari
Status:ok
Tags:
Comment:
using legalChars() per comment at r68458
Modified paths:
  • /trunk/extensions/CentralNotice/SpecialNoticeTemplate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/SpecialNoticeTemplate.php
@@ -754,7 +754,8 @@
755755
756756 // Generate list of message fields from parsing the body
757757 $fields = array();
758 - preg_match_all( '/\{\{\{([A-Za-z0-9\_\-\x{00C0}-\x{017F}]+)\}\}\}/u', $body, $fields );
 758+ $allowedChars = Title::legalChars();
 759+ preg_match_all( "/\{\{\{([$allowedChars]+)\}\}\}/u", $body, $fields );
759760
760761 // Remove duplicates
761762 $filteredFields = array();

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r68458adding extended Latin to allowable chars for template message names per bug 1...kaldari17:19, 23 June 2010

Status & tagging log