Current time: 11-01-2024, 11:33 AM Hello There, Guest! (LoginRegister)


Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Erledigt] Bug oder Feature? Subdomainhosting nicht möglich wenn Zahl im Domainnamen.
Author Message
FISA4 Offline
Member
***

Posts: 668
Joined: Feb 2008
Reputation: 15
Post: #18
RE: Bug oder Feature? Subdomainhosting nicht mehr möglich.
(11-29-2009 01:42 AM)nuxwin Wrote:  In the gui/include/input-checks.php file :

Replace :
PHP Code:
function _validates_sld($sld$strict_sld true) {

    global 
$validation_err_msg;
    
$validation_err_msg tr('Wrong Second Level Domain syntax!');

    
// Single-Character SLD
    // Note: All another SC SLD are presently reserved in
    // all gTLD registry agreements.
    
$scSLD =
        
'i\.net|'.
        
'q\.(?:com|net)|'.
        
'x\.org|'.
        
'[xz]\.com';

    
$pattern = ($strict_sld) ? '@^' $scSLD '|[a-z]{2,6}\..+$@' '@^[a-z]+\..+$@';

    return (bool) 
preg_match($pattern$sld);

by
PHP Code:
function _validates_sld($sld$strict_sld false) {

    global 
$validation_err_msg;
    
$validation_err_msg tr('Wrong Second Level Domain syntax!');

    
// Single-Character SLD
    // Note: All another SC SLD are presently reserved in
    // all gTLD registry agreements.
    
$scSLD =
        
'i\.net|'.
        
'q\.(?:com|net)|'.
        
'x\.org|'.
        
'[xz]\.com';

    
$pattern = ($strict_sld) ? '@^' $scSLD '|[a-z]{2,6}\..+$@' '@^[a-z0-9]+\..+$@';

    return (bool) 
preg_match($pattern$sld);


Thanks.

By the way...

In Germany scSLD´s are allowed since 10/23/09.
(This post was last modified: 11-29-2009 01:51 AM by FISA4.)
11-29-2009 01:49 AM
Find all posts by this user
Thread Closed 


Messages In This Thread
RE: Bug oder Feature? Subdomainhosting nicht mehr möglich. - FISA4 - 11-29-2009 01:49 AM

Forum Jump:


User(s) browsing this thread: 4 Guest(s)