aboutsummaryrefslogtreecommitdiff
path: root/webAO/packets/handlers/handleBN.ts
AgeCommit message (Collapse)Author
4 daysRemove safeTags, decodeChat, and prepChatOsmium Sorcerer
Following the removal of innerHTML manipulation, we no longer need these sanitization functions. I've reviewed every safeTags call site to make sure the outputs don't end up anywhere unsafe, and malicious input can't malipulate DOM or execute code. These values either end up either as plain text (textContent, innerText, createTextNode, title, option) or as a URL path to request assets to the server (encoded using encodeURI). That is, if safeTags was even effective, considering all that function did was replace '<' and '>' symbols with Unicode lookalikes. Even the comment was suggesting the use of fundamentally safer functions instead of these hacks. Replace remaining uses of prepChat with unescapeChat as we still need to do the token substitution (like "<and>" to "&"). decodeChat was escaping Unicode sequences like \uXXXX, but I don't see the reason for this, AO2 Client doesn't have this feature, and considering WebSocket text frames are strictly UTF-8, we don't need these encodings.
2025-10-06move setbackgroundstonedDiscord
2025-10-03maybe fix pantiltstonedDiscord
2025-10-02set backgroundsstonedDiscord
2025-09-03also do bgsstonedDiscord
2025-09-03bgurlsstonedDiscord
2024-11-20Prettified Code!stonedDiscord
2024-08-27enable pantilt if the bg has itstonedDiscord
2024-08-27the full bg is called court not fullstonedDiscord
2023-09-20autoformat with eslintstonedDiscord
2022-09-07Added more functionsCaleb
2022-09-06More window functionsCaleb
2022-09-04Fix AO HostCaleb
2022-09-04undo dom stuffstonedDiscord
2022-09-04Several functions movedCaleb
2022-08-30Several packets addedCaleb