Kill a <font> tag and add some html paranoia
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 11 Feb 2005 06:43:09 +0000 (06:43 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 11 Feb 2005 06:43:09 +0000 (06:43 +0000)
includes/SpecialUnlockdb.php

index fa674d7..222a324 100644 (file)
@@ -38,10 +38,10 @@ class DBUnlockForm {
 
                if ( "" != $err ) {
                        $wgOut->setSubtitle( wfMsg( "formerror" ) );
-                       $wgOut->addHTML( "<p><font color='red' size='+1'>{$err}</font>\n" );
+                       $wgOut->addHTML( '<p class="error">' . htmlspecialchars( $err ) . "</p>\n" );
                }
-               $lc = wfMsg( "unlockconfirm" );
-               $lb = wfMsg( "unlockbtn" );
+               $lc = htmlspecialchars( wfMsg( "unlockconfirm" ) );
+               $lb = htmlspecialchars( wfMsg( "unlockbtn" ) );
                $titleObj = Title::makeTitle( NS_SPECIAL, "Unlockdb" );
                $action = $titleObj->escapeLocalURL( "action=submit" );