summaryrefslogtreecommitdiff
path: root/rhimport-fw
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2014-06-20 18:04:34 (GMT)
committerChristian Pointner <equinox@helsinki.at>2014-06-20 18:04:34 (GMT)
commit98a1be65db273fbf949b50909a0700ffda7b71fd (patch)
tree0e885b255c2becfbfbba8231efd9368843936f30 /rhimport-fw
parentbad34ad0166f03e753905aae1bbe1cdea2d9c4f8 (diff)
added extension check to all autoimports
Diffstat (limited to 'rhimport-fw')
-rwxr-xr-xrhimport-fw5
1 files changed, 5 insertions, 0 deletions
diff --git a/rhimport-fw b/rhimport-fw
index 7109198..8ce5ef5 100755
--- a/rhimport-fw
+++ b/rhimport-fw
@@ -138,6 +138,11 @@ for my $entry ($feed->entries) {
exit 0;
}
$out_file = $ff->output_file;
+ if(!rhimport::check_file_extension($out_file)) {
+ print "\n\nThe extension of the matching file '". $out_file . "' seems to be wrong - manual import necessary!!!\n";
+ $dbh->disconnect();
+ exit 1;
+ }
print " --> " . $bnum . ": downloading " . $url . " (" . $enclosure->length . " Bytes) .. ";
$file = $ff->fetch( to => '/tmp' ) or die $ff->error;