Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 995e6516aac905732ed51782be621c9f1f73b46b 1 parent beae931
Slaven Rezić authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  cgi/bbbikegooglemap.cgi
2  cgi/bbbikegooglemap.cgi
View
@@ -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+\.}{};
Please sign in to comment.
Something went wrong with that request. Please try again.