diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-06-13 16:20:32 (GMT) |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-06-13 16:20:32 (GMT) |
commit | c4e79cf6a42f073f4f8fad73805329c88712bc00 (patch) | |
tree | 663cd6a0c4ffd7a2198a9bbb37d42b2e75eb5ab9 | |
parent | 54049caf779914089cfebc183c1b38a99c80b497 (diff) | |
download | kolab-wap-kolab-webadmin-2.4.tar.gz |
form_value.validate_mailquota() to make sure the value is an integerkolab-webadmin-2.4
-rw-r--r-- | lib/api/kolab_api_service_form_value.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/api/kolab_api_service_form_value.php b/lib/api/kolab_api_service_form_value.php index f85f45d..873c662 100644 --- a/lib/api/kolab_api_service_form_value.php +++ b/lib/api/kolab_api_service_form_value.php @@ -467,7 +467,7 @@ class kolab_api_service_form_value extends kolab_api_service $auth = Auth::get_instance($_SESSION['user']->get_domain()); $conf = Conf::get_instance(); - + $unique_attr = $conf->get('unique_attribute'); if (!$unique_attr) { $unique_attr = 'nsuniqueid'; @@ -739,6 +739,11 @@ class kolab_api_service_form_value extends kolab_api_service } } + private function validate_mailquota($value) + { + return (int)($value); + } + private function validate_mailalternateaddress($value) { $auth = Auth::get_instance(); |