X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fkml.cgi;h=a156edc1574992e71145fae651789249006747a3;hp=7eaaa2a911c3573d14eafb05ad9539a64ae43cbb;hb=3f2a7b01b59902faed5767d81e2959e131bdbdfd;hpb=fb4ab1073f0d15d660c6cdc4e07afebf68ef3924 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" );