Fix escaping issue #36

Closed
opened 2025-04-15 00:46:56 +00:00 by ihatenodejs · 0 comments
ihatenodejs commented 2025-04-15 00:46:56 +00:00 (Migrated from github.com)

Issue

src/commands/gsmarena.js:202

userName = userName.replace("<", "").replace(">", "");

.replace will only replace the first < it sees, which could lead to some unintended issues.


Tracking issue for:

### Issue `src/commands/gsmarena.js:202` ```node userName = userName.replace("<", "").replace(">", ""); ``` `.replace` will only replace the first `<` it sees, which could lead to some unintended issues. --- Tracking issue for: - [ ] https://github.com/abocn/TelegramBot/security/code-scanning/17
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: ABOCN/TelegramBot#36
No description provided.