summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar grunfink2026-03-18 15:52:37 +0100
committerGravatar grunfink2026-03-18 15:52:37 +0100
commitd9357a118a05807a1b0050e651e7118c53bf1aec (patch)
tree5467ba364da911a2ea82ca09ab4a5035b44acc76
parentDon't use a NULL md5 in quoted post anchors. (diff)
downloadsnac2-d9357a118a05807a1b0050e651e7118c53bf1aec.tar.gz
snac2-d9357a118a05807a1b0050e651e7118c53bf1aec.tar.xz
snac2-d9357a118a05807a1b0050e651e7118c53bf1aec.zip
If latitude or longitude are not numbers, use them as string.
-rw-r--r--html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.c b/html.c
index fd7e594..b7461c1 100644
--- a/html.c
+++ b/html.c
@@ -3152,7 +3152,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
3152 else 3152 else
3153 if (!xs_is_null(latitude) && !xs_is_null(longitude)) { 3153 if (!xs_is_null(latitude) && !xs_is_null(longitude)) {
3154 xs *url = xs_fmt("https://openstreetmap.org/search/?query=%s,%s", 3154 xs *url = xs_fmt("https://openstreetmap.org/search/?query=%s,%s",
3155 xs_number_str(latitude), xs_number_str(longitude)); 3155 xs_or(xs_number_str(latitude), latitude), xs_or(xs_number_str(longitude), longitude));
3156 3156
3157 xs_html_add(snac_content_wrap, 3157 xs_html_add(snac_content_wrap,
3158 xs_html_tag("p", 3158 xs_html_tag("p",