Check-in by ben on 2024-08-19 02:33:45
Fix broken gopher items caused by wrong format code. The port
should be formatted with %s not %d because it isn't in Geomyidae
gophermaps the port isn't necessarily numeric.
INSERTED DELETED
4 4 src/details/index.dcgi.m4
4 4 TOTAL over 1 changed file
Index: src/details/index.dcgi.m4
==================================================================
--- src/details/index.dcgi.m4
+++ src/details/index.dcgi.m4
@@ -102,20 +102,20 @@
}
print(shorten(title, 70))
if (length(creator) > 0) {
label = "by " shorten(creator, 70)
- printf "[1|%s|%s/search/%%09creator:(%s)|%s|%d]\n", label,
+ printf "[1|%s|%s/search/%%09creator:(%s)|%s|%s]\n", label,
cgipath, creator, server, port
}
if (length(thumb) > 0) {
url = sprintf("http://%s%s/%s", item_server, dir, thumb)
- printf "[I|Thumbnail|%s/raw/%%09%s|%s|%d]\n",
+ printf "[I|Thumbnail|%s/raw/%%09%s|%s|%s]\n",
cgipath, url, server, port
}
- printf "[1|Download|%s/download/%s|%s|%d]\n", cgipath,
+ printf "[1|Download|%s/download/%s|%s|%s]\n", cgipath,
item_id, server, port
print ""
print_html(descr)
@@ -183,11 +183,11 @@
}
print ""
printf "[h|Item web page|URL:%s/details/%s|%s|%s]\n",
api_ssl_endpoint, uri_encode(id), server, port
- printf "[1|PHAROS|%s|%s|%d]\n", cgipath, server, port
+ printf "[1|PHAROS|%s|%s|%s]\n", cgipath, server, port
unlink(iaout)
return
}