Ticket #7141: 7141.diff
| File 7141.diff, 589 bytes (added by , 17 years ago) |
|---|
-
wp-includes/pluggable.php
726 726 727 727 // If https is required and request is http, redirect 728 728 if ( $secure && !is_ssl() && false !== strpos($_SERVER['REQUEST_URI'], 'wp-admin') ) { 729 if ( 0 === strpos($_SERVER['REQUEST_URI'], 'http') ) {729 if ( preg_match('#^https?://#i', $_SERVER['REQUEST_URI']) ) { 730 730 wp_redirect(preg_replace('|^http://|', 'https://', $_SERVER['REQUEST_URI'])); 731 731 exit(); 732 732 } else {