diff --git a/README.md b/README.md index 4bbaaa03..4db0a696 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,9 @@ The options to ged2site are: | -W | don't colorize warning output | | -x f | Given a location of people.xml from a previous run, add to a blog of changes (TODO) +NOTE: when you use the -m option, your Google API key will be included in the output, +so ensure that you restrict the key's use just to this app on your host's IP. + If [gedcom](https://github.com/nigelhorne/gedcom) is installed, ged2site will also create a calendar of births and deaths, one page for each month in the current year. diff --git a/ged2site b/ged2site index 50cfb637..3089d8e0 100755 --- a/ged2site +++ b/ged2site @@ -8641,10 +8641,10 @@ sub print_person print $xml "\n\t\t\n\t\t\t", MIME::Base64::encode_base64url($map_head), "\n\t\t\t", MIME::Base64::encode_base64url($map_div), "\n\t\t"; print $csv MIME::Base64::encode_base64url($map_head), '!', MIME::Base64::encode_base64url($map_div), '!'; - if($opts{'m'}) { - # Don't include the key in the webpage. - $map_head =~ s/\?key=\w+?"/"/; - } + # if($opts{'m'}) { + # # Don't include the key in the webpage. + # $map_head =~ s/\?key=\w+?"/"/; + # } print $html wide_to_html({ string => $map_head, keep_hrefs => 1 }), '

Map

', wide_to_html({ string => $map_div, keep_hrefs => 1 }), "\n";