Changeset 42892
- Timestamp:
- 04/03/2018 02:31:16 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-login.php
r42843 r42892 15 15 if ( force_ssl_admin() && ! is_ssl() ) { 16 16 if ( 0 === strpos( $_SERVER['REQUEST_URI'], 'http' ) ) { 17 wp_ redirect( set_url_scheme( $_SERVER['REQUEST_URI'], 'https' ) );17 wp_safe_redirect( set_url_scheme( $_SERVER['REQUEST_URI'], 'https' ) ); 18 18 exit(); 19 19 } else { 20 wp_ redirect( 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );20 wp_safe_redirect( 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ); 21 21 exit(); 22 22 }
Note: See TracChangeset
for help on using the changeset viewer.