Skip to content

Commit

Permalink
Make a note of the key being stored in the output
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Jul 5, 2024
1 parent 10fbb13 commit aaa7b22
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions ged2site
Original file line number Diff line number Diff line change
Expand Up @@ -8641,10 +8641,10 @@ sub print_person
print $xml "\n\t\t<map>\n\t\t\t<map_head>", MIME::Base64::encode_base64url($map_head),
"</map_head>\n\t\t\t<body>", MIME::Base64::encode_base64url($map_div), "</body>\n\t\t</map>";
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 }),
'<h2>Map</h2>', wide_to_html({ string => $map_div, keep_hrefs => 1 }),
"\n";
Expand Down

0 comments on commit aaa7b22

Please sign in to comment.