* (bug 1788) Fix link duplication when edit/upload comment includes newlines
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 6 Apr 2005 00:00:03 +0000 (00:00 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 6 Apr 2005 00:00:03 +0000 (00:00 +0000)
includes/Linker.php

index ce1bab5..f830819 100644 (file)
@@ -688,6 +688,7 @@ class Linker {
                wfProfileIn( $fname );
                
                global $wgContLang;
+               $comment = str_replace( "\n", " ", $comment );
                $comment = htmlspecialchars( $comment );
 
                # The pattern for autogen comments is / * foo * /, which makes for