dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a060794
)
Escape {{, [[ and < in doc pages (not all wikitext, we still want headings, bullets...
author
Chad Horohoe
<demon@users.mediawiki.org>
Wed, 9 Jun 2010 18:04:48 +0000
(18:04 +0000)
committer
Chad Horohoe
<demon@users.mediawiki.org>
Wed, 9 Jun 2010 18:04:48 +0000
(18:04 +0000)
includes/installer/WebInstaller.php
patch
|
blob
|
history
diff --git
a/includes/installer/WebInstaller.php
b/includes/installer/WebInstaller.php
index
95e1f81
..
547bf66
100644
(file)
--- a/
includes/installer/WebInstaller.php
+++ b/
includes/installer/WebInstaller.php
@@
-1663,6
+1663,8
@@
abstract class WebInstaller_Document extends WebInstallerPage {
}
protected function formatTextFile( $text ) {
+ $text = str_replace( array( '<', '{{', '[[' ),
+ array( '<', '{{', '[[' ), $text );
// replace numbering with [1], [2], etc with MW-style numbering
$text = preg_replace( "/\r?\n(\r?\n)?\\[\\d+\\]/m", "\\1#", $text );
// join word-wrapped lines into one