Changeset 53455 for trunk/src/wp-admin/includes/user.php
- Timestamp:
- 06/01/2022 06:12:25 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/user.php
r53063 r53455 85 85 $user->user_url = ''; 86 86 } else { 87 $user->user_url = esc_url_raw( $_POST['url'] );87 $user->user_url = sanitize_url( $_POST['url'] ); 88 88 $protocols = implode( '|', array_map( 'preg_quote', wp_allowed_protocols() ) ); 89 89 $user->user_url = preg_match( '/^(' . $protocols . '):/is', $user->user_url ) ? $user->user_url : 'http://' . $user->user_url;
Note: See TracChangeset
for help on using the changeset viewer.