summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-09-23 13:43:02 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-09-23 13:43:02 -0400
commit49a79590b033482b2a53ad8a5dc4cf58342f1a5d (patch)
treeaafb4beafe611158d5773c1431a83df3fc3c97eb
parentcbd8f39f242f63fdf94731e0dd1df5ae10870840 (diff)
rationalize Zach's change of length with my added _ and caps
darcs-hash:20080923174302-5ed1f-bf1e3339745eb497523912c2e58298b25ebe89d5.gz
-rw-r--r--actions/twittersettings.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/actions/twittersettings.php b/actions/twittersettings.php
index bdb9958de..058bec1b0 100644
--- a/actions/twittersettings.php
+++ b/actions/twittersettings.php
@@ -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_LOWER))) {
- $this->show_form(_('Username must have only lowercase letters and numbers and no spaces.'));
+ 'max_length' => 15,
+ 'format' => VALIDATE_NUM . VALIDATE_ALPHA . '_'))) {
+ $this->show_form(_('Username must have only numbers, upper- and lowercase letters, and underscore (_).'));
return;
}