[interchange-cvs] interchange - kwalsh modified lib/Vend/Interpolate.pm

interchange-cvs at icdevgroup.org interchange-cvs at icdevgroup.org
Mon Aug 7 22:01:03 EDT 2006


User:      kwalsh
Date:      2006-08-08 02:01:02 GMT
Modified:  lib/Vend Interpolate.pm
Log:
    * Fix an issue, reported by Carl Bailey, where links containing
      127.0.0.1 can get saved into [timed-build] cache files.

Revision  Changes    Path
2.275     +7 -3      interchange/lib/Vend/Interpolate.pm


rev 2.275, prev_rev 2.274
Index: Interpolate.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Interpolate.pm,v
retrieving revision 2.274
retrieving revision 2.275
diff -u -r2.274 -r2.275
--- Interpolate.pm	7 Aug 2006 18:30:44 -0000	2.274
+++ Interpolate.pm	8 Aug 2006 02:01:02 -0000	2.275
@@ -1,6 +1,6 @@
 # Vend::Interpolate - Interpret Interchange tags
 # 
-# $Id: Interpolate.pm,v 2.274 2006/08/07 18:30:44 mheins Exp $
+# $Id: Interpolate.pm,v 2.275 2006/08/08 02:01:02 kwalsh Exp $
 #
 # Copyright (C) 2002-2006 Interchange Development Group
 # Copyright (C) 1996-2002 Red Hat, Inc.
@@ -28,7 +28,7 @@
 require Exporter;
 @ISA = qw(Exporter);
 
-$VERSION = substr(q$Revision: 2.274 $, 10);
+$VERSION = substr(q$Revision: 2.275 $, 10);
 
 @EXPORT = qw (
 
@@ -5109,7 +5109,11 @@
     my $opt = shift;
 	my $abort;
 
-	if (defined $opt->{if}) {
+	if ($Vend::Cfg->{VendURL} eq 'http://127.0.0.1') {
+		$abort = 1;
+		delete $opt->{new};
+	}
+	elsif (defined $opt->{if}) {
 		$abort = 1 if ! $opt->{if}; 
 	}
 








More information about the interchange-cvs mailing list