[interchange-cvs] interchange - heins modified 2 files

interchange-cvs at icdevgroup.org interchange-cvs at icdevgroup.org
Wed Apr 27 21:56:28 EDT 2005


User:      heins
Date:      2005-04-28 01:56:28 GMT
Modified:  lib/Vend Server.pm
Modified:  lib/Vend/Table Common.pm
Log:
* More warning removal.

Revision  Changes    Path
2.59      +8 -5      interchange/lib/Vend/Server.pm


rev 2.59, prev_rev 2.58
Index: Server.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Server.pm,v
retrieving revision 2.58
retrieving revision 2.59
diff -u -r2.58 -r2.59
--- Server.pm	21 Apr 2005 11:14:43 -0000	2.58
+++ Server.pm	28 Apr 2005 01:56:28 -0000	2.59
@@ -1,6 +1,6 @@
 # Vend::Server - Listen for Interchange CGI requests as a background server
 #
-# $Id: Server.pm,v 2.58 2005/04/21 11:14:43 mheins Exp $
+# $Id: Server.pm,v 2.59 2005/04/28 01:56:28 mheins Exp $
 #
 # Copyright (C) 2002-2003 Interchange Development Group
 # Copyright (C) 1996-2002 Red Hat, Inc.
@@ -26,7 +26,7 @@
 package Vend::Server;
 
 use vars qw($VERSION);
-$VERSION = substr(q$Revision: 2.58 $, 10);
+$VERSION = substr(q$Revision: 2.59 $, 10);
 
 use POSIX qw(setsid strftime);
 use Vend::Util;
@@ -189,6 +189,9 @@
 
 	map_misc_cgi() if $h;
 
+	# Initialize since always used elsewhere, never will be 0
+	$CGI::content_type ||= '';
+
 	my $g = $Global::Selector{$CGI::script_name}
 		or do {
 			my $msg = ::get_locale_message(
@@ -378,12 +381,14 @@
 
 sub parse_multipart {
 	my $sref = shift;
+
 	my ($boundary) = $CGI::content_type =~ /boundary=\"?([^\";]+)\"?/;
 	$boundary = quotemeta $boundary;
-#::logDebug("got to multipart");
+
 	# Stolen from CGI.pm, thanks Lincoln
 	$boundary = "--$boundary"
 		unless $CGI::useragent =~ /MSIE 3\.0[12];  Mac/i;
+
 	unless ($$sref =~ s/^\s*$boundary\s+//) {
 		die ::errmsg("multipart/form-data sent incorrectly:\n%s\n", $$sref);
 	}
@@ -391,8 +396,6 @@
 	my @parts;
 	@parts = split /\r?\n$boundary/, $$sref;
 	
-#::logDebug("multipart: " . scalar @parts . " parts");
-
 	DOMULTI: {
 		for (@parts) {	
 		    last if ! $_ || ($_ =~ /^--(\r?\n)?$/);



2.39      +3 -3      interchange/lib/Vend/Table/Common.pm


rev 2.39, prev_rev 2.38
Index: Common.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Table/Common.pm,v
retrieving revision 2.38
retrieving revision 2.39
diff -u -r2.38 -r2.39
--- Common.pm	27 Apr 2005 22:23:59 -0000	2.38
+++ Common.pm	28 Apr 2005 01:56:28 -0000	2.39
@@ -1,6 +1,6 @@
 # Vend::Table::Common - Common access methods for Interchange databases
 #
-# $Id: Common.pm,v 2.38 2005/04/27 22:23:59 mheins Exp $
+# $Id: Common.pm,v 2.39 2005/04/28 01:56:28 mheins Exp $
 #
 # Copyright (C) 2002-2003 Interchange Development Group
 # Copyright (C) 1996-2002 Red Hat, Inc.
@@ -23,7 +23,7 @@
 # Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 # MA  02111-1307  USA.
 
-$VERSION = substr(q$Revision: 2.38 $, 10);
+$VERSION = substr(q$Revision: 2.39 $, 10);
 use strict;
 
 package Vend::Table::Common;
@@ -774,7 +774,7 @@
 	my $return;
 	my $spec;
 	my $stmt;
-	my $update;
+	my $update = '';
 	my %nh;
 	my @na;
 	my @update_fields;








More information about the interchange-cvs mailing list