r24223 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24222‎ | r24223 | r24224 >
Date:00:12, 18 July 2007
Author:aaron
Status:old
Tags:
Comment:
*Don't let urls have spaces
Modified paths:
  • /trunk/extensions/ConfirmAccount/ConfirmAccount_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ConfirmAccount/ConfirmAccount_body.php
@@ -597,8 +597,10 @@
598598 global $wgParser, $wgTitle, $wgUser;
599599
600600 $linkList = '';
601 - $links = explode( "\n", htmlspecialchars($text) );
602 - foreach( $links as $link ) {
 601+ $lines = explode( "\n", htmlspecialchars($text) );
 602+ foreach( $lines as $line ) {
 603+ $links = explode("\n",$line);
 604+ $link = $links[0];
603605 if( strpos($link,'.') )
604606 $linkList .= "<li><a href='$link'>$link</a></li>\n";
605607 }

Status & tagging log