[Users] Support for URL encoding

Pierre Fortin pf at pfortin.com
Sat Jul 23 15:40:46 UTC 2022


On Sat, 23 Jul 2022 12:44:08 -0000 Paul wrote:

>On Sat, 23 Jul 2022 08:38:16 -0400
>Pierre Fortin <pf at pfortin.com> wrote: 
>
>> Incoming links which are processed by python's urllib.parse.quote()
>> return the first part as https%3A//... which is not clickable on incoming
>> messages; but http://... links are clickable.
>> Should I file this as a bug or enhancement request?
>> Or maybe it's a quick fix...  :)  
>
>Isn't it python's urllib.parse.quote() which is broken?

Maybe...  but CM should handle %xx triplets...

https://www.rfctools.com/url-encoder/
changes: https://foo.bar/some page

to: https%3A%2F%2Ffoo.bar%2Fsome%20page
         ^^^^^^^^^       ^^^    ^^^

https://www.url-encode-decode.com
changes it to: https%3A%2F%2Ffoo.bar%2Fsome+page
                    ^^^^^^^^^       ^^^    ^

See also https://www.ietf.org/rfc/rfc3986.txt (2.1 and 2.4)

Whether CM displays a link as received (http://, http%3A//, or
http%3A%2F%2F), or normalizes it, it's still a link...   Only http://
is currently treated as a link...

I doubt this has changed since 4.1.0git40 that I'm running.

HTH

>with regards
>
>Paul
>_______________________________________________
>Users mailing list
>Users at lists.claws-mail.org
>https://lists.claws-mail.org/cgi-bin/mailman/listinfo/users
>


More information about the Users mailing list