diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2008-09-23 02:03:14 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2008-09-23 02:03:14 -0400 |
commit | b2b475d3130325599fa775ba32fffb3e3d91e14f (patch) | |
tree | 329ba9b07e85bd2b5dafa4ec5bb4eb22cc0d586c /actions/twittersettings.php | |
parent | 858e55f5b41011bdba78d52fd6bd48bd655f2656 (diff) |
change twitter username to allow uppercase letters and underscores
darcs-hash:20080923060314-5ed1f-2ec4894251b99a2f9e9763ecc41659533bfab2eb.gz
Diffstat (limited to 'actions/twittersettings.php')
-rw-r--r-- | actions/twittersettings.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actions/twittersettings.php b/actions/twittersettings.php index 4ec1a5799..f656b9b6b 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' => 64, + 'format' => VALIDATE_NUM . VALIDATE_ALPHA . '_'))) { + $this->show_form(_('Username must have only numbers, upper- and lowercase letters, and underscore (_).')); return; } |