Index: trunk/phase3/includes/LogPage.php |
— | — | @@ -94,6 +94,9 @@ |
95 | 95 | function addEntry( $action, $comment, $textaction = "" ) |
96 | 96 | { |
97 | 97 | global $wgLang, $wgUser; |
| 98 | + |
| 99 | + $comment_esc = wfEscapeWikiText( $comment ); |
| 100 | + |
98 | 101 | $this->getContent(); |
99 | 102 | |
100 | 103 | $ut = $wgUser->getName(); |
— | — | @@ -117,7 +120,8 @@ |
118 | 121 | if ( "" == $comment ) { |
119 | 122 | $inline = ""; |
120 | 123 | } else { |
121 | | - $inline = " <em>({$comment})</em>"; |
| 124 | + $inline = " <em>({$comment_esc})</em>"; |
| 125 | + # comment gets escaped again, so we use the unescaped version |
122 | 126 | $this->mComment .= ": {$comment}"; |
123 | 127 | } |
124 | 128 | $this->mContent = "{$m[1]}<ul><li>{$d} {$ul} {$action}{$inline}</li>\n{$m[2]}"; |