Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Links containing %23 are visually rendered as different links #493

Open
samueltardieu opened this issue Aug 30, 2024 · 0 comments
Open

Links containing %23 are visually rendered as different links #493

samueltardieu opened this issue Aug 30, 2024 · 0 comments

Comments

@samueltardieu
Copy link
Contributor

Telega Setup

OS: NixOS 24.11 (Vicuna)
Emacs: GNU Emacs 29.4 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.18.0, Xaw3d scroll bars)
Features: svg webp ffmpeg
Telega: telega v0.8.293 (TDLib v1.8.29-12c1689) (telega-server v0.8.2 [docker])

Current Behavior

Links are unhexified before being rendered. While this is fine for most codepoints, "%23" is displayed as "#" which has a different semantics.

For example, "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=%231079375" will be displayed as "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=#1079375" which is interpreted by web browsers as "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=" with anchor "1079375".

While Telega is able to open (RET) or copy (c) the link, it renders it with visually incompatible semantics. Copying the Telega conversation into a mail, or acting on the link with embark will lead to the wrong URL being used.

Steps to Reproduce

Possible Solution

If the link target and the link text are identical (or the link text is omitted, I didn't check the tdlib api), "%23" should be exempt from unhexification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant