[interchange-cvs] interchange - racke modified lib/Vend/Interpolate.pm
interchange-core@interchange.redhat.com
interchange-core@interchange.redhat.com
Sun Oct 7 07:54:04 2001
User: racke
Date: 2001-10-07 11:53:21 GMT
Modified: lib/Vend Interpolate.pm
Log:
static page building should be independent from secure mode
Revision Changes Path
2.16 +10 -2 interchange/lib/Vend/Interpolate.pm
rev 2.16, prev_rev 2.15
Index: Interpolate.pm
===================================================================
RCS file: /anon_cvs/repository/interchange/lib/Vend/Interpolate.pm,v
retrieving revision 2.15
retrieving revision 2.16
diff -u -r2.15 -r2.16
--- Interpolate.pm 2001/10/06 06:41:10 2.15
+++ Interpolate.pm 2001/10/07 11:53:21 2.16
@@ -1,6 +1,6 @@
# Vend::Interpolate - Interpret Interchange tags
#
-# $Id: Interpolate.pm,v 2.15 2001/10/06 06:41:10 mheins Exp $
+# $Id: Interpolate.pm,v 2.16 2001/10/07 11:53:21 racke Exp $
#
# Copyright (C) 1996-2001 Red Hat, Inc. <interchange@redhat.com>
#
@@ -27,7 +27,7 @@
require Exporter;
@ISA = qw(Exporter);
-$VERSION = substr(q$Revision: 2.15 $, 10);
+$VERSION = substr(q$Revision: 2.16 $, 10);
@EXPORT = qw (
@@ -490,6 +490,10 @@
my ($name, @post);
my ($bit, %post);
+ # static page building should be independent from secure mode
+ my $secure = $CGI::secure;
+ $CGI::secure = 0;
+
$CacheInvalid = 0;
vars_and_comments(\$html);
@@ -511,6 +515,10 @@
$CacheInvalid++ if $parse->{INVALID};
$Vend::CachePage = $CacheInvalid ? undef : 1;
$complete = \$full if $full;
+
+ # restore secure mode
+ $CGI::secure = $secure;
+
if (defined $Vend::BuildingPages) {
return $full if $full;
return $parse->{OUT};