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

replace underscore with escaped underscore #270

Merged

Conversation

bugrakocabay
Copy link
Contributor

As stated in this issue #239, when sending a message that has a "_" character in telegram gives an error. This is actually caused by parsing the message as markdown.

Issue has been solved by replacing all occurrences of underscore in string with escaped underscore.

@sonarcloud
Copy link

sonarcloud bot commented Jun 10, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@bugrakocabay
Copy link
Contributor Author

@ehsandeep review please

@ehsandeep ehsandeep linked an issue Jul 8, 2023 that may be closed by this pull request
@ehsandeep ehsandeep added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Jul 8, 2023
Copy link
Member

@ehsandeep ehsandeep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @bugrakocabay, just wanted to say thanks for fixing that bug! Sorry it took me a while to review it. Appreciate your help!

@ehsandeep ehsandeep merged commit 0e2f527 into projectdiscovery:dev Jul 8, 2023
6 of 7 checks passed
@moein9
Copy link

moein9 commented Feb 18, 2024

asterisk also should be escaped otherwise it gets an error.

echo "*.eg.com"|notify

Bad Request: can't parse entities: Can't find end of the entity starting at byte offset 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing notifications for telegram
3 participants