From: Brion Vibber Date: Fri, 6 Jun 2003 19:10:22 +0000 (+0000) Subject: Disallow / character in new usernames, as this conflicts with subpages (this was... X-Git-Tag: 1.1.0~497 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=c33b460549265bb28771db779050bab40e909ffa;p=lhc%2Fweb%2Fwiklou.git Disallow / character in new usernames, as this conflicts with subpages (this was planned ages ago, but not finished) --- diff --git a/includes/SpecialUserlogin.php b/includes/SpecialUserlogin.php index 806ba7944f..e409e494b8 100644 --- a/includes/SpecialUserlogin.php +++ b/includes/SpecialUserlogin.php @@ -31,7 +31,8 @@ function wfSpecialUserlogin() } $wpName = trim( $wpName ); if ( ( "" == $wpName ) || - preg_match( "/^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$/", $wpName ) ) + preg_match( "/^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$/", $wpName ) || + (strpos( $wpName, "/" ) !== false) ) { mainLoginForm( wfMsg( "noname" ) ); return;