summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/imsettings.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/imsettings.php b/actions/imsettings.php
index b34f8ca12..d8680c98b 100644
--- a/actions/imsettings.php
+++ b/actions/imsettings.php
@@ -61,11 +61,11 @@ class ImsettingsAction extends SettingsAction {
function handle_post() {
- $jabber = $this->trimmed('jabber');
+ $jabber = jabber_normalize_jid($this->trimmed('jabber'));
$jabbernotify = $this->boolean('jabbernotify');
$updatefrompresence = $this->boolean('updatefrompresence');
- if (!jabber_validate_jid($jabber)) {
+ if (!jabber_valid_base_jid($jabber)) {
$this->show_form(_('Not a valid Jabber ID'));
return;
} else if ($this->jabber_exists($jabber)) {