freescout icon indicating copy to clipboard operation
freescout copied to clipboard

Ampersand in URL to image attachment not correctly encoded

Open bazizsafi opened this issue 3 years ago • 1 comments

Hi,

We're currently investigating why images included via URL are shown as unresolvable. See this screenshot:

image

The reason seems to be that the URL in the email source contains an ampersand (&) which is incorrectly encoded as &.

Compare the incorrect URL decoded from the quoted-printable-encoded mail source (first line) to the correct URL (second line)

https://freescout-url.tld/storage/attachment/9/3/1/firefox_yqoWQJvLFS.png?id=15&token=b2b7102a578a885b6dba882825915184
https://freescout-url.tld/storage/attachment/9/3/1/firefox_yqoWQJvLFS.png?id=15&token=b2b7102a578a885b6dba882825915184

We're using the currently latest version 1.8.26 of FreeScout, we use Apple Mail 13.4 (3608.120.23.2.7) and newer on macOS as mail clients.

bazizsafi avatar Sep 21 '22 13:09 bazizsafi

In HTML ampersands in URLs must be encoded as &.

freescout-helpdesk avatar Sep 22 '22 07:09 freescout-helpdesk

Ah, yes, you're right!

It turns out the unresolvable images where due to an HTTP Basic Authentication restricting access to our FreeScout instance. Mail clients trying to resolve the image link were not able to authenticate, of course, so the image couldn't be loaded.

My bad, sorry to waste your time.

bazizsafi avatar Sep 22 '22 08:09 bazizsafi