[interchange-cvs] interchange - racke modified 2 files

interchange-core@icdevgroup.org interchange-core@icdevgroup.org
Tue Jul 23 18:35:00 2002


User:      racke
Date:      2002-07-23 22:34:02 GMT
Modified:  .        Tag: STABLE_4_8-branch WHATSNEW
Modified:  lib/Vend Tag: STABLE_4_8-branch Interpolate.pm
Log:
Fixed error in Vend::Interpolate::tag_mail where a code reference is
used as a hash reference if the passed body is empty.

Revision  Changes    Path
No                   revision



No                   revision



2.6.2.70  +3 -0      interchange/WHATSNEW


rev 2.6.2.70, prev_rev 2.6.2.69
Index: WHATSNEW
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /anon_cvs/repository/interchange/WHATSNEW,v
retrieving revision 2.6.2.69
retrieving revision 2.6.2.70
diff -u -r2.6.2.69 -r2.6.2.70
--- WHATSNEW	23 Jul 2002 17:47:58 -0000	2.6.2.69
+++ WHATSNEW	23 Jul 2002 22:34:01 -0000	2.6.2.70
@@ -46,6 +46,9 @@
   problems with ignore_case set. Found and patch supplied by Mike Weisenbo=
rn
   <mw@clearbult.com>.
=20
+* Fixed error in Vend::Interpolate::tag_mail where a code reference is
+  used as a hash reference if the passed body is empty.
+
 Usertags
 --------
=20



No                   revision



No                   revision



2.9.2.19  +3 -3      interchange/lib/Vend/Interpolate.pm


rev 2.9.2.19, prev_rev 2.9.2.18
Index: Interpolate.pm
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /anon_cvs/repository/interchange/lib/Vend/Interpolate.pm,v
retrieving revision 2.9.2.18
retrieving revision 2.9.2.19
diff -u -r2.9.2.18 -r2.9.2.19
--- Interpolate.pm	27 Jun 2002 22:38:24 -0000	2.9.2.18
+++ Interpolate.pm	23 Jul 2002 22:34:01 -0000	2.9.2.19
@@ -1,6 +1,6 @@
 # Vend::Interpolate - Interpret Interchange tags
 #=20
-# $Id: Interpolate.pm,v 2.9.2.18 2002/06/27 22:38:24 jon Exp $
+# $Id: Interpolate.pm,v 2.9.2.19 2002/07/23 22:34:01 racke Exp $
 #
 # Copyright (C) 1996-2002 Red Hat, Inc. <interchange@redhat.com>
 #
@@ -27,7 +27,7 @@
 require Exporter;
 @ISA =3D qw(Exporter);
=20
-$VERSION =3D substr(q$Revision: 2.9.2.18 $, 10);
+$VERSION =3D substr(q$Revision: 2.9.2.19 $, 10);
=20
 @EXPORT =3D qw (
=20
@@ -3250,7 +3250,7 @@
 		push @headers, grep /^\w[-\w]*:/, split /\n/, $opt->{extra};
 	}
=20
-	$body ||=3D $setsub->{body};
+	$body ||=3D $setsub->('body');
 	unless($body) {
 		return error_opt($opt, "Refuse to send email message with no body.");
 	}