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:
fc5e54e
)
change wfEscapeWikiText() to escape the pipe | character. This was breaking
author
Brion Vibber
<brion@users.mediawiki.org>
Mon, 22 Dec 2003 04:14:33 +0000
(
04:14
+0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Mon, 22 Dec 2003 04:14:33 +0000
(
04:14
+0000)
{{MSGNW:foo}} inside a wiki-syntax table.
includes/GlobalFunctions.php
patch
|
blob
|
history
diff --git
a/includes/GlobalFunctions.php
b/includes/GlobalFunctions.php
index
5920efe
..
91959f4
100644
(file)
--- a/
includes/GlobalFunctions.php
+++ b/
includes/GlobalFunctions.php
@@
-642,8
+642,8
@@
function wfCheckLimits( $deflimit = 50, $optionname = "rclimit" ) {
function wfEscapeWikiText( $text )
{
$text = str_replace(
- array( '[', "'", 'ISBN ' , '://' , "\n=" ),
- array( '[', ''', 'ISBN ', '://' , "\n=" ),
+ array( '[',
'|',
"'", 'ISBN ' , '://' , "\n=" ),
+ array( '[', '&#
124;', '&#
39;', 'ISBN ', '://' , "\n=" ),
htmlspecialchars($text) );
return $text;
}