]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Twitter bridge - Changed Twitter username length check from 64 chars to Twitter max...
authorZach Copley <zach@controlyourself.ca>
Tue, 23 Sep 2008 08:41:45 +0000 (04:41 -0400)
committerZach Copley <zach@controlyourself.ca>
Tue, 23 Sep 2008 08:41:45 +0000 (04:41 -0400)
darcs-hash:20080923084145-7b5ce-25cfef64778010135234046be25294a3c7860419.gz

actions/twittersettings.php

index bdf02013b672dbd0ee1e6722c632abd6dab3fae9..bdb9958dee7e2aa271b4a60ee1522cdf85fc099c 100644 (file)
@@ -112,9 +112,9 @@ class TwittersettingsAction extends SettingsAction {
                $friendsync = $this->boolean('friendsync');
 
                if (!Validate::string($twitter_username, array('min_length' => 1,
-                                                                                                          'max_length' => 64,
-                                                                                                          'format' => VALIDATE_NUM . VALIDATE_ALPHA . '_'))) {
-                       $this->show_form(_('Username must have only numbers, upper- and lowercase letters, and underscore (_).'));
+                                                                                          'max_length' => 64,
+                                                                                          'format' => VALIDATE_NUM . VALIDATE_ALPHA_LOWER))) {
+                       $this->show_form(_('Username must have only lowercase letters and numbers and no spaces.'));
                        return;
                }