Changeset 782

Show
Ignore:
Timestamp:
09/28/06 16:54:45 (2 years ago)
Author:
donncha
Message:

Strip "." at the end of hostname. (fixes #156)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wpmu-settings.php

    r739 r782  
    99        $domain = substr( $domain, 4 ); 
    1010$domain = preg_replace('/:.*$/', '', $domain); // Strip ports 
     11if( substr( $domain, -1 ) == '.' ) 
     12        $domain = substr( $domain, 0, -1 ); 
    1113 
    1214$path = preg_replace( '|([a-z0-9-]+.php.*)|', '', $_SERVER['REQUEST_URI'] );