commit to avoid « bouffonneries » of inatentive administrators
authorx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Fri, 30 Sep 2005 08:02:05 +0000 (08:02 +0000)
committerx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Fri, 30 Sep 2005 08:02:05 +0000 (08:02 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@69 839d8a87-29fc-0310-9880-83ba4fa771e5

htdocs.net/groupe/edit.php

index 99a7726..2532521 100644 (file)
@@ -5,6 +5,9 @@
 
     if (Post::has('submit')) {
         if (has_perms()) {
+            if (strstr(Post::get('mail_domain'), '.') === false) {
+                $page->trig_run("le domaine doit être un FQDN (aucune modif effectuée) !!!");
+            }
             $globals->xdb->execute(
                 "UPDATE  groupex.asso
                     SET  nom={?}, diminutif={?}, cat={?}, dom={?}, descr={?}, site={?}, mail={?}, resp={?}, forum={?}, mail_domain={?}, ax={?}, pub={?}, sub_url={?}, inscriptible={?}