Changeset 58097 for trunk/src/wp-includes/ms-site.php
- Timestamp:
- 05/04/2024 07:23:31 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-site.php
r56549 r58097 525 525 // Sanitize domain if passed. 526 526 if ( array_key_exists( 'domain', $data ) ) { 527 $data['domain'] = trim( $data['domain'] ); 528 $data['domain'] = preg_replace( '/\s+/', '', sanitize_user( $data['domain'], true ) ); 529 if ( is_subdomain_install() ) { 530 $data['domain'] = str_replace( '@', '', $data['domain'] ); 531 } 527 $data['domain'] = preg_replace( '/[^a-z0-9\-.:]+/i', '', $data['domain'] ); 532 528 } 533 529
Note: See TracChangeset
for help on using the changeset viewer.