From 3ccffbff760488088221935bc992f54de399659a Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Mon, 19 Nov 2001 23:56:00 +0000 Subject: Another attempt at getting universal compatibility with URI/paths ... I'm really beginning to dispise IIS ... git-svn-id: file:///svn/phpbb/trunk@1380 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/posting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/posting.php') diff --git a/phpBB/posting.php b/phpBB/posting.php index 9db20d6a01..309886f096 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -1388,7 +1388,7 @@ if( ( $submit || $confirm || $mode == "delete" ) && !$error ) $path = (dirname($HTTP_SERVER_VARS['SCRIPT_NAME']) == "/") ? "" : dirname($HTTP_SERVER_VARS['SCRIPT_NAME']); $server_name = ( isset($HTTP_SERVER_VARS['HTTP_HOST']) ) ? $HTTP_SERVER_VARS['HTTP_HOST'] : $HTTP_SERVER_VARS['SERVER_NAME']; - $protocol = ( !empty($HTTP_SERVER_VARS['HTTPS']) ) ? "https://" : "http://"; + $protocol = ( !empty($HTTP_SERVER_VARS['HTTPS']) ) ? ( ( $HTTP_SERVER_VARS['HTTPS'] == "on" ) ? "https://" : "http://" ) : "http://"; for($i = 0; $i < count($email_set); $i++) { -- cgit v1.2.1