[interchange-cvs] interchange - jon modified lib/Vend/ModPerl.pm
interchange-cvs at icdevgroup.org
interchange-cvs at icdevgroup.org
Fri Jul 23 08:58:56 EDT 2004
User: jon
Date: 2004-07-23 12:58:56 GMT
Modified: lib/Vend ModPerl.pm
Log:
Add support for uploaded files in IC-in-mod_perl server mode.
By Spencer Christensen <schristensen at backcountry.com>. Thanks!
Revision Changes Path
2.6 +7 -2 interchange/lib/Vend/ModPerl.pm
rev 2.6, prev_rev 2.5
Index: ModPerl.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/ModPerl.pm,v
retrieving revision 2.5
retrieving revision 2.6
diff -u -u -r2.5 -r2.6
--- ModPerl.pm 18 Jun 2003 17:34:44 -0000 2.5
+++ ModPerl.pm 23 Jul 2004 12:58:56 -0000 2.6
@@ -1,6 +1,6 @@
# Vend::ModPerl - Run Interchange inside Apache and mod_perl
#
-# $Id: ModPerl.pm,v 2.5 2003/06/18 17:34:44 jon Exp $
+# $Id: ModPerl.pm,v 2.6 2004/07/23 12:58:56 jon Exp $
#
# Copyright (C) 2002-2003 Interchange Development Group
# Copyright (C) 2002 Red Hat, Inc.
@@ -21,7 +21,7 @@
package Vend::ModPerl;
-$VERSION = substr(q$Revision: 2.5 $, 10);
+$VERSION = substr(q$Revision: 2.6 $, 10);
use Apache::Constants qw(:common);
use Apache::Request ();
@@ -63,6 +63,11 @@
# not handling MV3-style requests or TolerateGet compatibility yet
my $apr = Apache::Request->new($r);
for my $k ($apr->param) {
+ if (my $upload = $apr->upload($k)) {
+ my $fh = $upload->fh;
+ $CGI::file{$k} = join('', <$fh>);
+ #::logDebug("Vend::ModPerl: cgi param $k is an upload file of length " . length($CGI::file{$k}));
+ }
for my $v ($apr->param($k)) {
Vend::Server::store_cgi_kv($k, $v);
}
More information about the interchange-cvs
mailing list