[evolvis-commits] r14082: LdapextauthPlugin: Changed db_query call to db_query_params
mirabilos at evolvis.org
mirabilos at evolvis.org
Mon Feb 28 03:49:06 CET 2011
Author: mirabilos
Date: 2011-02-28 03:49:06 +0100 (Mon, 28 Feb 2011)
New Revision: 14082
Modified:
trunk/gforge_base/evolvisforge-5.1/gforge/plugins/ldapextauth/include/LdapExtAuthPlugin.class.php
Log:
LdapextauthPlugin: Changed db_query call to db_query_params
Modified: trunk/gforge_base/evolvisforge-5.1/gforge/plugins/ldapextauth/include/LdapExtAuthPlugin.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/plugins/ldapextauth/include/LdapExtAuthPlugin.class.php 2011-02-28 02:49:04 UTC (rev 14081)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/plugins/ldapextauth/include/LdapExtAuthPlugin.class.php 2011-02-28 02:49:06 UTC (rev 14082)
@@ -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 evolvis-commits
mailing list