Index: trunk/extensions/ConfirmAccount/ConfirmAccount_body.php |
— | — | @@ -608,6 +608,9 @@ |
609 | 609 | */ |
610 | 610 | function parseLinks( $text ) { |
611 | 611 | global $wgParser, $wgTitle, $wgUser; |
| 612 | + # Don't let this get flooded |
| 613 | + $max = 10; |
| 614 | + $count = 0; |
612 | 615 | |
613 | 616 | $linkList = ''; |
614 | 617 | $lines = explode( "\n", htmlspecialchars($text) ); |
— | — | @@ -616,6 +619,9 @@ |
617 | 620 | $link = $links[0]; |
618 | 621 | if( strpos($link,'.') ) |
619 | 622 | $linkList .= "<li><a href='$link'>$link</a></li>\n"; |
| 623 | + $count++; |
| 624 | + if( $count >= $max ) |
| 625 | + break; |
620 | 626 | } |
621 | 627 | if( $linkList == '' ) { |
622 | 628 | $linkList = wfMsgHtml( 'confirmaccount-nourls' ); |