Update of /cvsroot/mantisbt/mantisbt/core
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29242/core
Modified Files:
authentication_api.php
Log Message:
fixed query failing in pgsql due to quoting
Index: authentication_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/authentication_api.php,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- authentication_api.php 11 Jul 2005 23:49:13 -0000 1.51
+++ authentication_api.php 30 Jul 2005 19:33:52 -0000 1.52
@@ -373,7 +373,7 @@
if (
$g_cache_anonymous_user_cookie_string == null ) {
if ( function_exists( 'db_is_connected' ) &&
db_is_connected() ) {
# get anonymous information if database is
available
- $query = sprintf('SELECT
id, cookie_string FROM %s WHERE username = "%s"',
+ $query = sprintf('SELECT
id, cookie_string FROM %s WHERE username = \'%s\'',
config_get(
'mantis_user_table' ), config_get( 'anonymous_account' ) );
$result = db_query( $query );
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|