[Fusionforge-commits] r9988 - in trunk/gforge: common/include utils

Roland Mas lolando at libremir.placard.fr.eu.org
Thu Jun 3 15:40:00 CEST 2010


Author: lolando
Date: 2010-06-03 15:40:00 +0200 (Thu, 03 Jun 2010)
New Revision: 9988

Modified:
   trunk/gforge/common/include/config.php
   trunk/gforge/utils/migrate-to-ini-files.sh
Log:
Only quote values that need to be quoted, and fix parsing of booleans

Modified: trunk/gforge/common/include/config.php
===================================================================
--- trunk/gforge/common/include/config.php	2010-06-03 13:20:00 UTC (rev 9987)
+++ trunk/gforge/common/include/config.php	2010-06-03 13:40:00 UTC (rev 9988)
@@ -99,7 +99,6 @@
 		case 'on':
 		case 'yes':
 		case '1':
-		case true:
 			return true ;
 		}
 		

Modified: trunk/gforge/utils/migrate-to-ini-files.sh
===================================================================
--- trunk/gforge/utils/migrate-to-ini-files.sh	2010-06-03 13:20:00 UTC (rev 9987)
+++ trunk/gforge/utils/migrate-to-ini-files.sh	2010-06-03 13:40:00 UTC (rev 9988)
@@ -24,7 +24,11 @@
 	lastsection=$section
     fi
 
-    echo "$var = \"$value\""
+    if echo $value | grep -q [^[:alnum:]] ; then
+	echo $var = \"$value\"
+    else
+	echo $var = $value
+    fi
 }
 
 lastsection=''




More information about the Fusionforge-commits mailing list