Changeset 1024

Show
Ignore:
Timestamp:
08/08/07 08:20:29 (1 year ago)
Author:
donncha
Message:

Do some cleanup of the basedomain, fixes #391, props drmike

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/index-install.php

    r1023 r1024  
    355355        }  
    356356        $domain =   $wpdb->escape( $_POST[ 'basedomain' ] ); 
     357        $domain = str_replace( 'http://', '', $domain ); 
    357358        if( substr( $domain, 0, 4 ) == 'www.' ) 
    358359                $domain = substr( $domain, 4 ); 
    359  
     360        if( strpos( $domain, '/' ) ) 
     361                $domain = substr( $domain, 0, strpos( $domain, '/' ) ); 
    360362        $email = $wpdb->escape( $_POST[ 'email' ] ); 
    361363        $weblog_title = $wpdb->escape( $_POST[ 'weblog_title' ] );