summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2004-04-07 08:07:14 +0000
committerivan <ivan>2004-04-07 08:07:14 +0000
commit866dee8f68a8acacd7afb31677f8d44d5eb663c9 (patch)
treee5df58cbf3f12ff95412971f25a2f83f8802ee25 /FS
parentc99825d7319287112433488bde6103bd12cb2e51 (diff)
make -T happy (under old perl?)
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/part_export.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/part_export.pm b/FS/FS/part_export.pm
index f722dd917..8ac8d751e 100644
--- a/FS/FS/part_export.pm
+++ b/FS/FS/part_export.pm
@@ -533,7 +533,9 @@ sub export_info {
#}
foreach my $INC ( @INC ) {
- foreach my $file ( glob("$INC/FS/part_export/*.pm") ) {
+ $INC =~ /^(.*)$/;
+ my $untainted_INC = $1;
+ foreach my $file ( glob("$untainted_INC/FS/part_export/*.pm") ) {
warn "attempting to load export info from $file\n" if $DEBUG;
$file =~ /\/(\w+)\.pm$/ or do {
warn "unrecognized file in $INC/FS/part_export/: $file\n";