From 64b688bd1d12eedaef31690b61d626f9f1a5f64e Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 28 Nov 2003 07:44:49 +0000 Subject: [PATCH] Evan's patch for bug 827757: Wikitext not escaped in log entry descriptions --- includes/LogPage.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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]}