summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Hoffend <dh@dotlan.net>2015-02-18 23:32:30 +0100
committerDaniel Hoffend <dh@dotlan.net>2015-02-18 23:32:30 +0100
commit062c8eb97bed4ff3d505f10f6a7cf0fe8c3fa66c (patch)
tree723afc4462bf5068826f948f2a81dd89209b5883
parent3b8d87403f8e178f2b4a333b675ea697759c12f7 (diff)
downloadwebadmin-062c8eb97bed4ff3d505f10f6a7cf0fe8c3fa66c.tar.gz
check cn attribute during generation
-rw-r--r--lib/api/kolab_api_service_form_value.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/api/kolab_api_service_form_value.php b/lib/api/kolab_api_service_form_value.php
index 26a2fbf..320acf9 100644
--- a/lib/api/kolab_api_service_form_value.php
+++ b/lib/api/kolab_api_service_form_value.php
@@ -581,6 +581,9 @@ class kolab_api_service_form_value extends kolab_api_service
return '';
}
+ // check format (will throw exception)
+ $this->validate_cn_sharedfolder($postdata['cn']);
+
$cn = $postdata['cn'];
$imap_hierarchysep = '/';