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

Incorrect brackets parsing in links / Некорректное преобразование скобок в ссылках #583

Open
kabalin opened this issue Mar 20, 2023 · 2 comments
Labels
Bug All bug reports

Comments

@kabalin
Copy link
Member

kabalin commented Mar 20, 2023

Сообщил konl·Вчера в 11:10.
Если ссылка содержит завершающую скобку, она будет рассматриваться как знак препинания, таким образом ссылка будет искажена.

В качестве решения - при преобразовании html encoded ссылки, не декодировать знаки препинания (в частности те, которые парсер считает за знак препинания).

Regression caused by #538

@kabalin kabalin added the Bug All bug reports label Mar 20, 2023
@darkblaze69
Copy link

Is there workaround for this?

@kabalin
Copy link
Member Author

kabalin commented Apr 9, 2024

Is there workaround for this?

Yes, replace last preposition character in URL with its encoded version.

Say, the link is https://ru.wikipedia.org/wiki/Памятник_Александру_II_(Белый_Ключ).
You need to replace the trailing ) with %29, so the new link will be:
https://ru.wikipedia.org/wiki/Памятник_Александру_II_(Белый_Ключ%29. This will save it correctly in comment, but if you decide to edit it, you will have to repeat the process.

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

No branches or pull requests

2 participants