logo       
Google Custom Search
    AddThis Social Bookmark Button

Related Msgs: audio.musicbrai...    enbd.general/20...    ietf.idr/2002-0...    java.ant-contri...    gnu.make.genera...    qplus.devel/200...    video.freevo.cv...    os.netbsd.ports...    yellowdog.gener...    xfree86.cvs/200...    search.nutch.us...    freedesktop.xse...    programming.swi...    capabilities.ge...    telephony.pbx.a...    mail.sylpheed.c...    db.firebase.por...    boot-loaders.u-...    recreation.radi...    netbsd.bugs/200...    web.zope.plone....    user-groups.lin...   

mantisbt/core authentication_api.php,1.51,1.52: msg#00135

Subject: mantisbt/core authentication_api.php,1.51,1.52
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 ...
<Prev in Thread] Current Thread [Next in Thread>