r80071 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80070‎ | r80071 | r80072 >
Date:00:38, 12 January 2011
Author:yaron
Status:deferred
Tags:
Comment:
Added HTML-escaping of page name
Modified paths:
  • /trunk/extensions/SemanticForms/specials/SF_FormStart.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/specials/SF_FormStart.php
@@ -76,7 +76,7 @@
7777 // if there was no page title, it's
7878 // probably an invalid page name,
7979 // containing forbidden characters
80 - $error_msg = wfMsg( 'sf_formstart_badtitle', $page_name );
 80+ $error_msg = wfMsg( 'sf_formstart_badtitle', htmlspecialchars( $page_name ) );
8181 $wgOut->addHTML( $error_msg );
8282 return;
8383 } else {

Status & tagging log