[Fusionforge-commits] FusionForge branch master updated. e3201e590bf73704ee1a9b5f6b05fc17016864d2

Franck Villaume nerville at fusionforge.org
Fri Dec 12 11:29:51 CET 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  e3201e590bf73704ee1a9b5f6b05fc17016864d2 (commit)
      from  255afceb86f5bc4e6f07aab961ddcb8f35b54bdb (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit e3201e590bf73704ee1a9b5f6b05fc17016864d2
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Fri Dec 12 11:29:33 2014 +0100

    indent

diff --git a/src/www/scm/include/viewvc_utils.php b/src/www/scm/include/viewvc_utils.php
index d317d03..43bc5e2 100644
--- a/src/www/scm/include/viewvc_utils.php
+++ b/src/www/scm/include/viewvc_utils.php
@@ -36,10 +36,10 @@
  * @return string  The argument with dangerous shell characters escaped.
  */
 function make_arg_cmd_safe($arg) {
-    if (get_magic_quotes_gpc()) {
-        $arg = stripslashes($arg);
-    }
-    return escapeshellcmd($arg);
+	if (get_magic_quotes_gpc()) {
+		$arg = stripslashes($arg);
+	}
+	return escapeshellcmd($arg);
 }
 
 /**
@@ -81,9 +81,9 @@ function viewcvs_execute($repos_name, $repos_type) {
 
 	$query_string = str_replace('\\&', '&', make_arg_cmd_safe($query_string));
 	$query_string = str_replace('\\*', '*', $query_string);
-    $query_string = preg_replace('/^inframe=1[&;]/','',$query_string);
+	$query_string = preg_replace('/^inframe=1[&;]/','',$query_string);
 
- 	$path = str_replace('\\*', '*', make_arg_cmd_safe($path));
+	$path = str_replace('\\*', '*', make_arg_cmd_safe($path));
 	$command = 'HTTP_COOKIE="'.make_arg_cmd_safe(getStringFromServer('HTTP_COOKIE')).'" '.
 		'REMOTE_ADDR="'.make_arg_cmd_safe(getStringFromServer('REMOTE_ADDR')).'" '.
 		'QUERY_STRING="'.$query_string.'" '.

-----------------------------------------------------------------------

Summary of changes:
 src/www/scm/include/viewvc_utils.php |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list