[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [578] trunk/LedgerSMB/AM.pm



Revision: 578
          http://svn.sourceforge.net/ledger-smb/?rev=578&view=rev
Author:   tetragon
Date:     2006-11-13 20:34:26 -0800 (Mon, 13 Nov 2006)

Log Message:
-----------
Fix parametrisation of a query

Modified Paths:
--------------
    trunk/LedgerSMB/AM.pm

Modified: trunk/LedgerSMB/AM.pm
===================================================================
--- trunk/LedgerSMB/AM.pm	2006-11-14 04:29:20 UTC (rev 577)
+++ trunk/LedgerSMB/AM.pm	2006-11-14 04:34:26 UTC (rev 578)
@@ -327,7 +327,7 @@
 	my $query = qq|
 		SELECT accno, description
 		  FROM gifi
-		 WHERE accno = '$form->{accno}'|;
+		 WHERE accno = ?|;
 
 	$sth = $dbh->prepare($query);
 	$sth->execute($form->{accno}) || $form->dberror($query);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.