[interchange-cvs] interchange - heins modified lib/Vend/Form.pm

interchange-cvs at icdevgroup.org interchange-cvs at icdevgroup.org
Wed Feb 11 16:32:13 EST 2004


User:      heins
Date:      2004-02-11 21:32:13 GMT
Modified:  lib/Vend Form.pm
Log:
* Tolerate leading whitespace in query.

Revision  Changes    Path
2.42      +3 -3      interchange/lib/Vend/Form.pm


rev 2.42, prev_rev 2.41
Index: Form.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Form.pm,v
retrieving revision 2.41
retrieving revision 2.42
diff -u -r2.41 -r2.42
--- Form.pm	2 Feb 2004 20:58:13 -0000	2.41
+++ Form.pm	11 Feb 2004 21:32:13 -0000	2.42
@@ -1,6 +1,6 @@
 # Vend::Form - Generate Form widgets
 # 
-# $Id: Form.pm,v 2.41 2004/02/02 20:58:13 mheins Exp $
+# $Id: Form.pm,v 2.42 2004/02/11 21:32:13 mheins Exp $
 #
 # Copyright (C) 2002-2003 Interchange Development Group
 # Copyright (C) 1996-2002 Red Hat, Inc.
@@ -38,7 +38,7 @@
 require Exporter;
 @ISA = qw(Exporter);
 
-$VERSION = substr(q$Revision: 2.41 $, 10);
+$VERSION = substr(q$Revision: 2.42 $, 10);
 
 @EXPORT = qw (
 	display
@@ -1067,7 +1067,7 @@
 		$data = [];
 		for my $l (@looks) {
 			next unless $db;
-			next unless $l =~ /^select\s+/i;
+			next unless $l =~ /^\s*select\s+/i;
 			my $qr = $db->query($l);
 			ref($qr) eq 'ARRAY' and push @$data, @$qr;
 		}








More information about the interchange-cvs mailing list