Revision [7246]
This is an old revision of NonWikiUserNames made by MonstoBrukes on 2005-04-13 18:57:20.
It seems to be based upon the function IsWikiName in /wikka.php, which is in turn referred to by
- usersettings.php: for login and changepassword.
- emailpassword.php: which just does a basic check and doesn't seem to be crucial for anything other than making sure it's a wikiname.
Before doing this or any other modification, back your shit up. A no brainer, but I thought i'd say it anyway.
/wikka.php
FIND (unmodified line 666)
function IsWikiName($text) { return preg_match("/^[A-Z,ÄÖÜ][a-z,ßäöü]+[A-Z,0-9,ÄÖÜ][A-Z,a-z,0-9,ÄÖÜ,ßäöü]*$/", $text); }
REPLACE WITH
//MOD: nonwiki usernames : function IsWikiName($text) { return preg_match("/^[A-Z,ÄÖÜ][a-z,ßäöü]+[A-Z,0-9,ÄÖÜ][A-Z,a-z,0-9,ÄÖÜ,ßäöü]*$/", $text); } function IsWikiName($text) { return preg_match("/^[A-Z,a-z,0-9,ÄÖÜ,ßäöü]*$/", $text); }