Fix potential HTML breakage if removechecked message were to include an apostrophe
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 14 Oct 2004 04:40:58 +0000 (04:40 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 14 Oct 2004 04:40:58 +0000 (04:40 +0000)
includes/SpecialWatchlist.php

index 5b9abdd..be82afe 100644 (file)
@@ -128,8 +128,8 @@ function wfSpecialWatchlist() {
                        }
                }
                $wgOut->addHTML( "</ul>\n" .
-                       "<input type='submit' name='remove' value='" .
-                       wfMsg( "removechecked" ) . "' />\n" .
+                       "<input type='submit' name='remove' value=\"" .
+                       htmlspecialchars( wfMsg( "removechecked" ) ) . "\" />\n" .
                        "</form>\n" );
 
                return;