Protect with newlines to prevent unexpected behaviour
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Thu, 25 Jun 2009 05:38:54 +0000 (05:38 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Thu, 25 Jun 2009 05:38:54 +0000 (05:38 +0000)
includes/ImagePage.php

index eea3d28..a02ba6c 100644 (file)
@@ -492,7 +492,7 @@ EOT
                                $nofile = 'filepage-nofile';
                        }
                        $wgOut->setRobotPolicy( 'noindex,nofollow' );
-                       $wgOut->wrapWikiMsg( '<div id="mw-imagepage-nofile" class="plainlinks">$1</div>', $nofile );
+                       $wgOut->wrapWikiMsg( "<div id='mw-imagepage-nofile' class='plainlinks'>\n$1\n</div>", $nofile );
                }
        }