From cbd8f39f242f63fdf94731e0dd1df5ae10870840 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Tue, 23 Sep 2008 04:41:45 -0400 Subject: [PATCH] Twitter bridge - Changed Twitter username length check from 64 chars to Twitter max of 15. darcs-hash:20080923084145-7b5ce-25cfef64778010135234046be25294a3c7860419.gz --- actions/twittersettings.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/actions/twittersettings.php b/actions/twittersettings.php index bdf02013b6..bdb9958dee 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 . '_'))) { - $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; }