Always encode the URL returned by urlize() - gopher2html - AWK script that converts a Gopher response to HTML
(HTM) hg clone https://bitbucket.org/iamleot/gopher2html
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) changeset c494defbbd94d1badb2dd3fc14c3cb2e87e6ff36
(DIR) parent 5ad45c945bc41f2cce8883edf0e5d291cd762c5d
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Wed, 24 Jan 2018 10:07:32
Always encode the URL returned by urlize()
Thanks and reported by Hiltjo Posthuma.
Diffstat:
gopher2html.awk | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff -r 5ad45c945bc4 -r c494defbbd94 gopher2html.awk
--- a/gopher2html.awk Wed Jan 24 10:06:50 2018 +0100
+++ b/gopher2html.awk Wed Jan 24 10:07:32 2018 +0100
@@ -3,7 +3,7 @@
function urlize(type, selector, host, port)
{
- return "gopher://" host ":" port "/" type selector
+ return encode("gopher://" host ":" port "/" type selector)
}
function encode(html)