Changeset 1904

Show
Ignore:
Timestamp:
08/27/07 08:55:03 (1 year ago)
Author:
benjamin
Message:

checking the subdomain syntax using checkfqdn instead of this crappy regexp (who miss and $...). Normally Fixes #1037

Files:

Legend:

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

    r1903 r1904  
    635635    $sub=strtolower($sub); 
    636636 
    637     if (!(($sub == '*') || ($sub=="") || (preg_match('/([a-z0-9][\.\-a-z0-9]*)?[a-z0-9]/', $sub)))) { 
     637    //    if (!(($sub == '*') || ($sub=="") || (preg_match('/([a-z0-9][\.\-a-z0-9]*)?[a-z0-9]/', $sub)))) { 
     638    if (($sub != '*') && checkfqdn($sub)) { 
    638639      $err->raise("dom",24); 
    639640      return false; 
  • alternc/trunk/bureau/locales/en_US/LC_MESSAGES/manual.po

    r1902 r1904  
    325325 
    326326msgid "err_err_1" 
    327 msgstr "The error message does not exists (%s)" 
     327msgstr "The error message does not exist (%s)" 
    328328 
    329329msgid "the %3$d-%2$d-%1$d at %4$d:%5$d"