summaryrefslogtreecommitdiff
path: root/lib/kolab_client_task.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kolab_client_task.php')
-rw-r--r--lib/kolab_client_task.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/kolab_client_task.php b/lib/kolab_client_task.php
index 132f8d7..f521d17 100644
--- a/lib/kolab_client_task.php
+++ b/lib/kolab_client_task.php
@@ -202,6 +202,9 @@ class kolab_client_task
$login = $this->get_input('login', 'POST');
if ($login['username']) {
+ $login['username'] = trim($login['username']);
+ $login['domain'] = trim($login['domain']);
+
$result = $this->api->login($login['username'], $login['password'], $login['domain'], true);
if ($token = $result->get('session_token')) {
@@ -516,8 +519,7 @@ class kolab_client_task
$type = kolab_utils::REQUEST_ANY;
}
- $result = kolab_utils::get_input($name, $type, $allow_html);
- return $result;
+ return kolab_utils::get_input($name, $type, $allow_html);
}
/**