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

Newlines get stripped from plaintext messages going over the relaybot #306

Closed
WGH- opened this issue Mar 31, 2019 · 0 comments
Closed

Newlines get stripped from plaintext messages going over the relaybot #306

WGH- opened this issue Mar 31, 2019 · 0 comments
Labels
bug: defect Something isn't working and it never has worked
Milestone

Comments

@WGH-
Copy link

WGH- commented Mar 31, 2019

This is my original message in Matrix (Python repr syntax, note the two newlines):

"https://medium.com/@maxi./finding-and-exploiting-cve-2018-7445-f3103f163cc1\n\nДостаточно несложный пример бинарной эксплуатации в реальном мире"

It's rendered in Matrix with an empty line in between, as expected.

And this is how it got forwarded to Telegram:

'@WGH:torlan.ru: https://medium.com/@maxi./finding-and-exploiting-cve-2018-7445-f3103f163cc1Достаточно несложный пример бинарной эксплуатации в реальном мире'

The newlines were removed, and corrupted the link.

My version is mautrix-telegram==0.5.1.

@tulir tulir changed the title Newlines are sometimes removed when forwarding from Matrix to Telegram Newlines get stripped from plaintext messages going over the relaybot Apr 1, 2019
@tulir tulir added the bug: defect Something isn't working and it never has worked label Apr 1, 2019
@tulir tulir added this to the 0.6.0 milestone Apr 1, 2019
@tulir tulir closed this as completed in 80d90f9 Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: defect Something isn't working and it never has worked
Development

No branches or pull requests

2 participants