From: Brion Vibber Date: Fri, 28 Nov 2003 07:44:49 +0000 (+0000) Subject: Evan's patch for bug 827757: Wikitext not escaped in log entry descriptions X-Git-Tag: 1.1.0~68 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=64b688bd1d12eedaef31690b61d626f9f1a5f64e;p=lhc%2Fweb%2Fwiklou.git Evan's patch for bug 827757: Wikitext not escaped in log entry descriptions --- diff --git a/includes/LogPage.php b/includes/LogPage.php index a2d5e92fc2..db047b2a1b 100644 --- a/includes/LogPage.php +++ b/includes/LogPage.php @@ -94,6 +94,9 @@ class LogPage { function addEntry( $action, $comment, $textaction = "" ) { global $wgLang, $wgUser; + + $comment_esc = wfEscapeWikiText( $comment ); + $this->getContent(); $ut = $wgUser->getName(); @@ -117,7 +120,8 @@ class LogPage { if ( "" == $comment ) { $inline = ""; } else { - $inline = " ({$comment})"; + $inline = " ({$comment_esc})"; + # comment gets escaped again, so we use the unescaped version $this->mComment .= ": {$comment}"; } $this->mContent = "{$m[1]}