Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F727104
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
Mon, Jan 6, 6:50 AM
Size
627 B
Mime Type
text/x-diff
Expires
Tue, Jan 7, 6:50 AM (3 d, 31 m ago)
Engine
blob
Format
Raw Data
Handle
537166
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