Skip to content

Commit

Permalink
SSL判別方法の変更
Browse files Browse the repository at this point in the history
  • Loading branch information
yhira committed Mar 28, 2018
1 parent 4b15f7f commit a9b2e36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/utils.php
Expand Up @@ -1244,7 +1244,9 @@ function get_encoded_url($url){
//現在表示しているページのURL
if ( !function_exists( 'get_requested_url' ) ):
function get_requested_url(){
return (empty($_SERVER['HTTPS']) ? 'http://' : 'https://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
// _v($_SERVER['HTTPS']);
// _v((empty($_SERVER['HTTPS']) ? 'http://' : 'https://'));
return (!is_ssl() ? 'http://' : 'https://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
}
endif;

Expand Down

0 comments on commit a9b2e36

Please sign in to comment.