WordPress.org

Make WordPress Core

Ticket #12823: no-blog-sanitization-before-strict-check.diff

File no-blog-sanitization-before-strict-check.diff, 513 bytes (added by nbachiyski, 4 years ago)
  • wp-includes/ms-functions.php

     
    541541function wpmu_validate_blog_signup($blogname, $blog_title, $user = '') { 
    542542        global $wpdb, $domain, $base, $current_site; 
    543543 
    544         $blogname = preg_replace( "/\s+/", '', sanitize_user( $blogname, true ) ); 
    545544        $blog_title = strip_tags( $blog_title ); 
    546545        $blog_title = substr( $blog_title, 0, 50 ); 
    547546