bug 420, nom d'epouse sur le trombi promo
[platal.git] / htdocs.net / groupe / edit.php
index 99a7726..dced958 100644 (file)
@@ -5,6 +5,9 @@
 
     if (Post::has('submit')) {
         if (has_perms()) {
+            if (Post::get('mail_domain') != "" && (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={?}
@@ -31,7 +34,7 @@
             $globals->xdb->execute('UPDATE groupex.asso SET logo={?}, logo_mime={?} WHERE id={?}', $logo, $mime, $globals->asso('id'));
         }
 
-        header('Location: ../'.Post::get('diminutif', $globals->asso('diminutif')).'/edit.php');
+        redirect('../'.Post::get('diminutif', $globals->asso('diminutif')).'/edit.php');
     }
 
     if (has_perms()) {