[Fusionforge-commits] r8565 - trunk/gforge/plugins/ldapextauth/include

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Fri Dec 18 17:46:55 CET 2009


Author: aljeux
Date: 2009-12-18 17:46:55 +0100 (Fri, 18 Dec 2009)
New Revision: 8565

Modified:
   trunk/gforge/plugins/ldapextauth/include/LdapExtAuthPlugin.class.php
Log:
LdapextauthPlugin: Changed db_query call to db_query_params

Modified: trunk/gforge/plugins/ldapextauth/include/LdapExtAuthPlugin.class.php
===================================================================
--- trunk/gforge/plugins/ldapextauth/include/LdapExtAuthPlugin.class.php	2009-12-18 16:32:15 UTC (rev 8564)
+++ trunk/gforge/plugins/ldapextauth/include/LdapExtAuthPlugin.class.php	2009-12-18 16:46:55 UTC (rev 8565)
@@ -276,7 +276,7 @@
 					$title = $mappedinfo['title'] ;
 				}
 				if ($mappedinfo['ccode']) {
-					$res = db_query("SELECT count(*) as c FROM country_code WHERE ccode='" . $mappedinfo['ccode'] . "'");
+					$res = db_query_params('SELECT count(*) as c FROM country_code WHERE ccode=$1', array($mappedinfo['ccode']));
 					if (db_result($res, 0, 'c') == 1) {
 						$ccode = $mappedinfo['ccode'] ;
 					}




More information about the Fusionforge-commits mailing list