Branch 'ticket/3335' - lib/api

Daniel Hoffend hoffend at kolabsys.com
Thu Feb 19 01:20:51 CET 2015


 lib/api/kolab_api_service_form_value.php |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 062c8eb97bed4ff3d505f10f6a7cf0fe8c3fa66c
Author: Daniel Hoffend <dh at dotlan.net>
Date:   Wed Feb 18 23:32:30 2015 +0100

    check cn attribute during generation

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 = '/';
 




More information about the commits mailing list