Skip to content

Commit

Permalink
Minor change to sub timed_build in Interpolate.pm to allow auto option
Browse files Browse the repository at this point in the history
of timed_build to work when NoAbsolute is set.
  • Loading branch information
Randy Moore committed Dec 31, 2002
1 parent 438b390 commit 1133a70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Vend/Interpolate.pm
@@ -1,6 +1,6 @@
# Vend::Interpolate - Interpret Interchange tags
#
# $Id: Interpolate.pm,v 2.139 2002-12-24 16:43:12 mheins Exp $
# $Id: Interpolate.pm,v 2.140 2002-12-31 14:09:26 ramoore Exp $
#
# Copyright (C) 1996-2002 Red Hat, Inc. <interchange@redhat.com>
#
Expand All @@ -27,7 +27,7 @@ package Vend::Interpolate;
require Exporter;
@ISA = qw(Exporter);

$VERSION = substr(q$Revision: 2.139 $, 10);
$VERSION = substr(q$Revision: 2.140 $, 10);

@EXPORT = qw (
Expand Down Expand Up @@ -5903,7 +5903,7 @@ sub timed_build {
}
$file = Vend::Util::escape_chars($file);
if($Global::NoAbsolute and (file_name_is_absolute($file) or $file =~ m#\.\./.*\.\.#)) {
if(!$opt->{auto} and $Global::NoAbsolute and (file_name_is_absolute($file) or $file =~ m#\.\./.*\.\.#)) {
::logError("Can't use file '%s' with NoAbsolute set", $file);
::logGlobal({ level => 'auth'}, "Can't use file '%s' with NoAbsolute set", $file);
return '';
Expand Down

0 comments on commit 1133a70

Please sign in to comment.