summaryrefslogtreecommitdiff
path: root/includes/parser/StripState.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2012-01-12 13:42:29 +0100
committerPierre Schmitz <pierre@archlinux.de>2012-01-12 13:42:29 +0100
commitba0fc4fa20067528effd4802e53ceeb959640825 (patch)
tree4f62217349d3afa39dbba3f7e19dac0aecb344f6 /includes/parser/StripState.php
parentca32f08966f1b51fcb19460f0996bb0c4048e6fe (diff)
Update to MediaWiki 1.18.1
Diffstat (limited to 'includes/parser/StripState.php')
-rw-r--r--includes/parser/StripState.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/includes/parser/StripState.php b/includes/parser/StripState.php
index c7bd1e77..357dc2c8 100644
--- a/includes/parser/StripState.php
+++ b/includes/parser/StripState.php
@@ -90,10 +90,13 @@ class StripState {
wfProfileIn( __METHOD__ );
$this->tempType = $type;
- $out = preg_replace_callback( $this->regex, array( $this, 'unstripCallback' ), $text );
+ do {
+ $oldText = $text;
+ $text = preg_replace_callback( $this->regex, array( $this, 'unstripCallback' ), $text );
+ } while ( $text !== $oldText );
$this->tempType = null;
wfProfileOut( __METHOD__ );
- return $out;
+ return $text;
}
/**