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

interchange-core@icdevgroup.org interchange-core@icdevgroup.org
Sat Jul 20 10:54:01 2002


User:      heins
Date:      2002-07-20 14:53:56 GMT
Modified:  lib/Vend Tag: STABLE_4_8-branch Parse.pm
Log:
* Allow bounce targets. Apply patch supplied by Mark Johnson quite a long
  time ago.

Revision  Changes    Path
No                   revision



No                   revision



2.0.2.8   +8 -2      interchange/lib/Vend/Parse.pm


rev 2.0.2.8, prev_rev 2.0.2.7
Index: Parse.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/Parse.pm,v
retrieving revision 2.0.2.7
retrieving revision 2.0.2.8
diff -u -r2.0.2.7 -r2.0.2.8
--- Parse.pm	27 Jun 2002 22:38:24 -0000	2.0.2.7
+++ Parse.pm	20 Jul 2002 14:53:56 -0000	2.0.2.8
@@ -1,6 +1,6 @@
 # Vend::Parse - Parse Interchange tags
 #=20
-# $Id: Parse.pm,v 2.0.2.7 2002/06/27 22:38:24 jon Exp $
+# $Id: Parse.pm,v 2.0.2.8 2002/07/20 14:53:56 mheins Exp $
 #
 # Copyright (C) 1996-2002 Red Hat, Inc. <interchange@redhat.com>
 #
@@ -35,7 +35,7 @@
=20
 @ISA =3D qw(Exporter Vend::Parser);
=20
-$VERSION =3D substr(q$Revision: 2.0.2.7 $, 10);
+$VERSION =3D substr(q$Revision: 2.0.2.8 $, 10);
=20
 @EXPORT =3D ();
 @EXPORT_OK =3D qw(find_matching_end);
@@ -1263,6 +1263,9 @@
 				$attr->{href} =3D Vend::Interpolate::tag_area($attr->{page});
 			}
 			$Vend::StatusLine =3D '' if ! $Vend::StatusLine;
+			$Vend::StatusLine .=3D <<EOF if $attr->{target};
+Window-Target: $attr->{target}
+EOF
 			$Vend::StatusLine .=3D <<EOF;
 Status: 302 moved
 Location: $attr->{href}
@@ -1578,6 +1581,9 @@
 			}
 			$Vend::StatusLine =3D '' if ! $Vend::StatusLine;
 			$Vend::StatusLine .=3D "\n" if $Vend::StatusLine !~ /\n$/;
+			$Vend::StatusLine .=3D <<EOF if $attr->{target};
+Window-Target: $attr->{target}
+EOF
 			$Vend::StatusLine .=3D <<EOF;
 Status: 302 moved
 Location: $attr->{href}