Permalink
Browse files

* bbbikegooglemap: use Strassen->new_by_magic_or_suffix

  It may happen that no filename is associated with an upload, or the
  file type does not match the supplied suffix.
  • Loading branch information...
1 parent beae931 commit 995e6516aac905732ed51782be621c9f1f73b46b @eserte committed Apr 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 cgi/bbbikegooglemap.cgi
View
2 cgi/bbbikegooglemap.cgi
@@ -98,7 +98,7 @@ sub run {
close $fh;
close $tmpfh;
- my $gpx = eval { Strassen->new($tmpfile, name => "Uploaded GPX file") };
+ my $gpx = eval { Strassen->new_by_magic_or_suffix($tmpfile, name => "Uploaded GPX file") };
if (!$gpx) {
warn $@;
(my $short_err_msg = $@) =~ s{ at \S+ line \d+\.}{};

0 comments on commit 995e651

Please sign in to comment.