Ticket #15733: ssl_behind_reverse_proxy.patch
File ssl_behind_reverse_proxy.patch, 450 bytes (added by , 14 years ago) |
---|
-
wp-includes/functions.
old new 3411 3411 return true; 3412 3412 } elseif ( isset($_SERVER['SERVER_PORT']) && ( '443' == $_SERVER['SERVER_PORT'] ) ) { 3413 3413 return true; 3414 } 3414 } elseif ( isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && ( 'https' == $_SERVER['HTTP_X_FORWARDED_PROTO'] ) ) { 3415 return true; 3416 } 3415 3417 return false; 3416 3418 } 3417 3419