Page 2 of 2

Re: Integrating Mantis with a remote SVN host

Posted: 26 Jun 2009, 12:22
by crazyminsc
Hello,

we have the same problem, is there solution ? We have tried to use:

Code: Select all

$g_source_control_server = array('xx.xx.xx.xx');
but without success. In the access log is printed :

Code: Select all

[26/Jun/2009:13:58:53 +0200] "POST /mantis/core/checkincurl.php HTTP/1.1" 200 39 "-" "curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5"
but those issues remain without comments :(.

Thank you for the reply.

Re: Integrating Mantis with a remote SVN host

Posted: 29 Jul 2009, 14:42
by Kirill
Try use http://git.mantisforge.org/w/source-integration.git in 1.2.x version of MantisBT

Re: Integrating Mantis with a remote SVN host

Posted: 06 Aug 2009, 18:22
by Nimitz1061
also, try adding 'localhost' to the array of authorized servers.

Re: Integrating Mantis with a remote SVN host

Posted: 12 Aug 2011, 19:31
by calraiden
Change :
# check if we are called from the right IP ( @todo might wanna use a array here )
# check if we are called from the right IP ( @todo might wanna use a array here )
if($_SERVER['REMOTE_ADDR'] != $t_source_control_server )
{
echo "Not allowed from this IP !!\n";
exit(0);
}

to:

Code: Select all

# check if we are called from the right IP ( @todo might wanna use a array here )
	if(!in_array($_SERVER['REMOTE_ADDR'],$t_source_control_server ))
	{
		echo "Not allowed from this IP {$_SERVER['REMOTE_ADDR']}!!\n";
		exit(0);
	}