[Vtigercrm-commits] [vtiger development] #5303: nusoap library SoapAction ignores https
vtiger development
vtiger-tickets at trac.vtiger.com
Wed Jul 9 07:39:01 EDT 2008
#5303: nusoap library SoapAction ignores https
------------------------+---------------------------------------------------
Reporter: prasad | Owner: asha
Type: defect | Status: new
Priority: minor | Milestone: 5.1.0
Component: vtigercrm | Version: 5.0.4
Resolution: | Keywords:
------------------------+---------------------------------------------------
Comment (by prasad):
soapaction is harded to http. The following fix might solve the issue.
{{{
File: include\nusoap\nusoap.php
In Function: register
Change Line:
$soapaction = "http://$SERVER_NAME$SCRIPT_NAME/$name";
With:
if (isset($_SERVER)) {
$SERVER_PORT = $_SERVER['SERVER_PORT'];
$HTTPS = $_SERVER['HTTPS'];
} elseif (isset($HTTP_SERVER_VARS)) {
$SERVER_PORT = $HTTP_SERVER_VARS['SERVER_PORT'];
$HTTPS = $HTTP_SERVER_VARS['HTTPS'];
}
if ($SERVER_PORT == 80) { $SERVER_PORT = ''; } else { $SERVER_PORT =
':' . $SERVER_PORT; }
if ($HTTPS == '1' || $HTTPS == 'on') { $SCHEME = 'https'; } else {
$SCHEME = 'http';
$soapaction = "$SCHEME://$SERVER_NAME$SERVER_PORT$SCRIPT_NAME/$name";
}}}
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/5303#comment:1>
vtiger development <http://trac.vtiger.com/>
vtigerCRM
More information about the vtigercrm-commits
mailing list