Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1025983
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
Fri, Jun 13, 5:47 PM
Size
627 B
Mime Type
text/x-diff
Expires
Sat, Jun 14, 5:47 PM (4 h, 12 m)
Engine
blob
Format
Raw Data
Handle
661642
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