make -T happy (under old perl?)
[freeside.git] / FS / FS / part_export.pm
index bd12389..69a0ba5 100644 (file)
@@ -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";