Changeset 1948

Show
Ignore:
Timestamp:
09/25/07 17:13:57 (1 year ago)
Author:
benjamin
Message:

Correcting m_dom error : cannot add empty subdomain

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc/trunk/bureau/class/m_dom.php

    r1947 r1948  
    638638    //    if (!(($sub == '*') || ($sub=="") || (preg_match('/([a-z0-9][\.\-a-z0-9]*)?[a-z0-9]/', $sub)))) { 
    639639    $fqdn=checkfqdn($sub); 
    640     if (($sub != '*') && !($fqdn==0 || $fqdn==4)) { 
     640    // Special cases : * (all subdomains at once) and '' empty subdomain are allowed. 
     641    if (($sub != '*' && $sub!='') && !($fqdn==0 || $fqdn==4)) { 
    641642      $err->raise("dom",24); 
    642643      return false; 
  • alternc/trunk/bureau/locales/fr_FR/LC_MESSAGES/messages.po

    r1927 r1948  
    21472147msgstr "ATTENTION : Etes-vous sur de vouloir supprimer le quota" 
    21482148 
    2149 #: ../admin/adm_dodel.php:61 
    2150 #, php-format 
    2151 msgid "Deleting users" 
    2152 msgstr "Supprimer un utilisateur" 
    2153  
    2154 #: ../admin/adm_dodel.php:65 
    2155 msgid "WARNING : Confirm the deletion of the users" 
    2156 msgstr "ATTENTION : Confirmez-vous la suppression de cette utilisateur" 
    2157  
    21582149#: ../admin/adm_doms.php:54 ../admin/adm_list.php:60 
    21592150#: ../admin/quota_show_all.php:38