summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-06-13 16:20:32 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-06-13 16:20:32 (GMT)
commitc4e79cf6a42f073f4f8fad73805329c88712bc00 (patch)
tree663cd6a0c4ffd7a2198a9bbb37d42b2e75eb5ab9
parent54049caf779914089cfebc183c1b38a99c80b497 (diff)
downloadkolab-wap-c4e79cf6a42f073f4f8fad73805329c88712bc00.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.php7
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();