From d758c117843dec04b061263095baeea7697b05a4 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 22 Jun 2008 14:04:37 -0400 Subject: disallow nicknames on a blacklist darcs-hash:20080622180437-34904-4b6313f6fd8845232031663c5c2df00dff725183.gz --- actions/profilesettings.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'actions/profilesettings.php') diff --git a/actions/profilesettings.php b/actions/profilesettings.php index 6764ad288..b6e24c729 100644 --- a/actions/profilesettings.php +++ b/actions/profilesettings.php @@ -88,6 +88,8 @@ class ProfilesettingsAction extends SettingsAction { 'format' => VALIDATE_NUM . VALIDATE_ALPHA_LOWER))) { $this->show_form(_t('Nickname must have only letters and numbers and no spaces.')); return; + } else if (!User::allowed_nickname($nickname)) { + $this->show_form(_t('Not a valid nickname.')); } else if (!is_null($homepage) && (strlen($homepage) > 0) && !Validate::uri($homepage, array('allowed_schemes' => array('http', 'https')))) { $this->show_form(_t('Homepage is not a valid URL.')); -- cgit v1.2.3-54-g00ecf