summaryrefslogtreecommitdiffstats
path: root/wp-includes/ms-site.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/ms-site.php')
-rw-r--r--wp-includes/ms-site.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/wp-includes/ms-site.php b/wp-includes/ms-site.php
index 65e7d8d..6e19758 100644
--- a/wp-includes/ms-site.php
+++ b/wp-includes/ms-site.php
@@ -524,11 +524,7 @@ function wp_prepare_site_data( $data, $defaults, $old_site = null ) {
function wp_normalize_site_data( $data ) {
// Sanitize domain if passed.
if ( array_key_exists( 'domain', $data ) ) {
- $data['domain'] = trim( $data['domain'] );
- $data['domain'] = preg_replace( '/\s+/', '', sanitize_user( $data['domain'], true ) );
- if ( is_subdomain_install() ) {
- $data['domain'] = str_replace( '@', '', $data['domain'] );
- }
+ $data['domain'] = preg_replace( '/[^a-z0-9\-.:]+/i', '', $data['domain'] );
}
// Sanitize path if passed.