diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-01-23 18:29:29 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-01-23 18:29:29 -0700 |
commit | 57384462f932628c66793f9ea5b13f98fd75035b (patch) | |
tree | 6993f81288f0eb6e78d7b9311b806188a497a5dd | |
parent | b8694107731a779b2e2ebd307577c8f1f6dc7c91 (diff) | |
download | mailscripts-57384462f932628c66793f9ea5b13f98fd75035b.tar.gz |
gmi2email: don't attempt to inline images from outside of gemini://
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
-rwxr-xr-x | gmi2email | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -249,7 +249,7 @@ sub gemtext_to_mail { &$pad; push @buffer, split "\n", wrap "• ", " ", $'; } elsif ($opts{inline_images} - and my ($uri) = /^=>\s(\S+\.(?:jpg|jpeg|png|gif))\s/) { + and my ($uri) = m{^=>\s(gemini://\S+\.(?:jpg|jpeg|png|gif))\s}) { &$flush; my ($type, $data) = gemini_fetch($uri); $msg->attach( |