summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-06-13 17:20:32 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-06-13 17:21:02 +0100
commit33a7c6a176fa6162c8f0394896225391f8fe109f (patch)
tree576c5cc394598350255d34a81bd37511fc58b389
parentcca2ba9adc2121f05c580bd69e4c66a6bdeea6cb (diff)
downloadwebadmin-33a7c6a176fa6162c8f0394896225391f8fe109f.tar.gz
form_value.validate_mailquota() to make sure the value is an integer
-rw-r--r--lib/api/kolab_api_service_form_value.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/api/kolab_api_service_form_value.php b/lib/api/kolab_api_service_form_value.php
index 47a8635..4aa7b78 100644
--- a/lib/api/kolab_api_service_form_value.php
+++ b/lib/api/kolab_api_service_form_value.php
@@ -857,6 +857,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();