[wpmu-trac] Re: [WordPress MU Trac] #659: Install: Domain parameter not validated.

WordPress MU Trac wpmu-trac at lists.automattic.com
Fri Jan 9 06:51:54 GMT 2009


#659: Install: Domain parameter not validated.
-----------------------------+----------------------------------------------
 Reporter:  lunabyte         |        Owner:  somebody
     Type:  enhancement      |       Status:  new     
 Priority:  low              |    Milestone:  2.7     
Component:  General          |      Version:          
 Severity:  trivial          |   Resolution:          
 Keywords:  install, domain  |  
-----------------------------+----------------------------------------------
Changes (by c2h5oh):

  * priority:  high => low
  * type:  defect => enhancement
  * component:  component1 => General
  * severity:  major => trivial
  * milestone:  => 2.7

Comment:

 It would be pretty difficult to check if the domain is valid with all the
 different tld allowing different characters in domain name and different
 maximum and minimum domain lenghts. And there is also IDN with non-latin1
 domain characters with the weird encoding.
 The only simple solution I can think of is to validate if the end of
 domain name is 2 to 4 characters (4 characters for .name and .mobi
 domains) prefixed with a dot, with following regexp:
 (.+)\.(.{2,4})

 Of course it will become invalid once you will get new "personal" tld such
 as .microsoft (the projects is currently on hold due to some protests)

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/659#comment:1>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list