summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2016-03-12 18:59:26 -0800
committerMark Wells <mark@freeside.biz>2016-03-20 16:42:01 -0700
commit9ed4d732a91d71a024d1c469730c737f64fa848a (patch)
tree9c47b3ee00c9de49224b9b629bdaf19548601332
parent699758d489a44bddc6ce92809fd6176e2548d45f (diff)
fix squashing of capital letters in KML
-rw-r--r--httemplate/view/kml.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/view/kml.cgi b/httemplate/view/kml.cgi
index 7eaaa2a91..a156edc15 100644
--- a/httemplate/view/kml.cgi
+++ b/httemplate/view/kml.cgi
@@ -6,6 +6,6 @@ $kml->Point( map { $_=>scalar($cgi->param($_)) } qw( name lat lon ) );
#http_header('Content-Type' => 'application/vnd.google-earth.kml+xml' ); #kml
http_header('Content-Type' => 'application/vnd.google-earth.kmz' ); #kmz
-( my $name = $cgi->param('name') ) =~ s/[^a-z0-9]/_/g; #perhaps too restrictive
+( my $name = $cgi->param('name') ) =~ s/[^a-z0-9]/_/gi; #perhaps too restrictive
http_header('Content-Disposition' => "filename=$name.kmz" );
</%init>