[Fusionforge-commits] r7924 - in trunk/gforge/plugins/scmcvs: bin common

Julien HEYMAN jheyman at libremir.placard.fr.eu.org
Wed Jul 8 18:31:26 CEST 2009


Author: jheyman
Date: 2009-07-08 18:31:25 +0200 (Wed, 08 Jul 2009)
New Revision: 7924

Modified:
   trunk/gforge/plugins/scmcvs/bin/aclcheck.php
   trunk/gforge/plugins/scmcvs/common/Snoopy.class.php
Log:
Fixed Bugs : Bad require and Notice

Modified: trunk/gforge/plugins/scmcvs/bin/aclcheck.php
===================================================================
--- trunk/gforge/plugins/scmcvs/bin/aclcheck.php	2009-07-08 16:31:21 UTC (rev 7923)
+++ trunk/gforge/plugins/scmcvs/bin/aclcheck.php	2009-07-08 16:31:25 UTC (rev 7924)
@@ -28,7 +28,8 @@
 }
 
 require_once dirname(__FILE__).'/../../env.inc.php';
-require_once $gfwww.'include/squal_pre.php';
+require $gfcgfile;
+require_once $gfcommon.'include/utils.php';
 require_once $gfconfig.'plugins/scmcvs/config.php';
 require $gfplugins.'scmcvs/common/Snoopy.class.php';
 

Modified: trunk/gforge/plugins/scmcvs/common/Snoopy.class.php
===================================================================
--- trunk/gforge/plugins/scmcvs/common/Snoopy.class.php	2009-07-08 16:31:21 UTC (rev 7923)
+++ trunk/gforge/plugins/scmcvs/common/Snoopy.class.php	2009-07-08 16:31:25 UTC (rev 7924)
@@ -287,7 +287,12 @@
 					}
 					else
 					{
-						$path = $URI_PARTS["path"].($URI_PARTS["query"] ? "?".$URI_PARTS["query"] : "");
+						if (isset($URI_PARTS["query"]))
+						{
+							$path = $URI_PARTS["path"].$URI_PARTS["query"];
+						}else {
+							$path = $URI_PARTS["path"];
+						}
 						// no proxy, send only the path
 						$this->_httprequest($path, $fp, $URI, $this->_submit_method, $this->_submit_type, $postdata);
 					}
@@ -1137,6 +1142,7 @@
 	{
 		settype($formvars, "array");
 		settype($formfiles, "array");
+		$postdata = "";
 
 		if (count($formvars) == 0 && count($formfiles) == 0)
 			return;




More information about the Fusionforge-commits mailing list