Index: trunk/extensions/CentralNotice/SpecialNoticeTemplate.php |
— | — | @@ -754,7 +754,8 @@ |
755 | 755 | |
756 | 756 | // Generate list of message fields from parsing the body |
757 | 757 | $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 ); |
759 | 760 | |
760 | 761 | // Remove duplicates |
761 | 762 | $filteredFields = array(); |