Page MenuHomeIn-Portal Phabricator

D390.diff
No OneTemporary

File Metadata

Created
Mon, Jan 6, 6:50 AM

D390.diff

Index: branches/5.2.x/core/kernel/db/db_tag_processor.php
===================================================================
--- branches/5.2.x/core/kernel/db/db_tag_processor.php
+++ branches/5.2.x/core/kernel/db/db_tag_processor.php
@@ -1959,7 +1959,8 @@
$title = $this->Application->ReplaceLanguageTags($title, false);
// 3. find and replace any replacement vars
- preg_match_all('/#(.*_.*)#/Uis',$title,$rets);
+ preg_match_all('/#([a-z\d\-]+?_[a-z\d]+?)#/is', $title, $rets);
+
if ($rets[1]) {
$replacement_vars = array_keys( array_flip($rets[1]) );
foreach ($replacement_vars as $replacement_var) {

Event Timeline