Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F8328
diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 11:57 PM
2014-11-21 23:57:34 (UTC+0)
Size
925 B
Referenced Files
None
Subscribers
None
diff
View Options
Index: includes/parser/StripState.php
===================================================================
--- includes/parser/StripState.php (revision 99017)
+++ includes/parser/StripState.php (working copy)
@@ -48,7 +48,7 @@
throw new MWException( "Invalid marker: $marker" );
}
- $this->data[$type][$m[1]] = $value;
+ $this->data[$type][$m[1]] = $this->unstripBoth( $value );
}
/**
@@ -155,9 +155,15 @@
function merge( $otherState, $texts ) {
$mergePrefix = Parser::getRandomString();
+ foreach ( $this->data as $type => $items ) {
+ foreach ( $items as $key => $value ) {
+ $this->data[$type][$key] = $otherState->unstripBoth( $value );
+ }
+ }
+
foreach ( $otherState->data as $type => $items ) {
foreach ( $items as $key => $value ) {
- $this->data[$type]["$mergePrefix-$key"] = $value;
+ $this->data[$type]["$mergePrefix-$key"] = $this->unstripBoth( $value );
}
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7852
Default Alt Text
diff (925 B)
Attached To
Mode
T33374: Nested refs expose strip markers
Attached
Detach File
Event Timeline
Log In to Comment