Changeset 1383

Show
Ignore:
Timestamp:
07/17/08 14:43:59 (5 months ago)
Author:
donncha
Message:

Use sanitize_* functions for addblog parameters. fixes 680

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/wpmu-edit.php

    r1379 r1383  
    9696 
    9797                $blog = $_POST['blog']; 
    98                 $domain = ereg_replace("[^A-Za-z0-9]", "", strtolower( wp_specialchars( $blog['domain'] ) ) ); 
    99                 $email = wp_specialchars( $blog['email'] ); 
    100                 $title = stripslashes( wp_specialchars( $blog['title'] ) ); 
     98                $domain = sanitize_user( str_replace( '/', '', $blog[ 'domain' ] ) ); 
     99                $email = sanitize_email( $blog[ 'email' ] ); 
     100                $title = sanitize_title( $blog[ 'title' ] ); 
    101101 
    102102                if ( empty($domain) || empty($email))