summaryrefslogtreecommitdiff
path: root/gmi2email
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-01-27 18:10:17 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-01-27 18:10:17 -0700
commitf83c52007dde3fa3b243a0fe3ac6bb052b963b71 (patch)
tree9355e1b694045ba939a96990bfcd83a311bc1fa9 /gmi2email
parentf9370aec2aa8702bb7826535a2f9409ff0f44040 (diff)
downloadmailscripts-f83c52007dde3fa3b243a0fe3ac6bb052b963b71.tar.gz
gmi2email: avoid double slashes
Seems some servers don't eliminate these themselves and can return "Not found". Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'gmi2email')
-rwxr-xr-xgmi2email1
1 files changed, 1 insertions, 0 deletions
diff --git a/gmi2email b/gmi2email
index ed0fb28..1015328 100755
--- a/gmi2email
+++ b/gmi2email
@@ -211,6 +211,7 @@ sub gemini_fetch {
if ($meta =~ "^text/gemini") {
my @lines;
if ($opts{abs_links}) {
+ $path =~ s{^/}{};
$authority =~ m{/$} or $authority .= "/";
$path =~ m{/$} or $path .= "/";
for (<$cl>) {