Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1168631
D390.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Sep 25, 3:17 AM
Size
627 B
Mime Type
text/x-diff
Expires
Fri, Sep 26, 3:17 AM (10 h, 39 m)
Engine
blob
Format
Raw Data
Handle
757063
Attached To
D390: INP-1792 - Support HTML markup with Title Presets
D390.diff
View Options
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
Log In to Comment