projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5befe34
)
fix squashing of capital letters in KML
author
Mark Wells
<mark@freeside.biz>
Sun, 13 Mar 2016 02:59:26 +0000
(18:59 -0800)
committer
Mark Wells
<mark@freeside.biz>
Sun, 13 Mar 2016 02:59:26 +0000
(18:59 -0800)
httemplate/view/kml.cgi
patch
|
blob
|
history
diff --git
a/httemplate/view/kml.cgi
b/httemplate/view/kml.cgi
index
7eaaa2a
..
a156edc
100644
(file)
--- 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]/_/g
i
; #perhaps too restrictive
http_header('Content-Disposition' => "filename=$name.kmz" );
</%init>