hack.chat icon indicating copy to clipboard operation
hack.chat copied to clipboard

Filter malicious LaTeX

Open lazyeasydev opened this issue 10 years ago • 5 comments

Obviously, first thing I went to do was break the site. You've fixed the latex in the name which was good for disabling LaTeX names that would non-stop crash the room.

https://github.com/Khan/KaTeX/issues/109

This goes over the open issue on the KaTeX library.

lazyeasydev avatar Jul 12 '15 17:07 lazyeasydev

Ouch, I wasn't actually aware KaTeX had things like \rule, \\[100em], and in the future, \hspace, \kern, and \def. I'll voice my opinion on the KaTeX issue.

AndrewBelt avatar Jul 12 '15 17:07 AndrewBelt

its not rly a problem when ppl are writing that kind of stuff you can use the "clear chat" option in the sidebar

M4GNV5 avatar Jul 12 '15 18:07 M4GNV5

Um, I can crash the browser and disable the ability to clear the chat. I believe that's a problem.

lazyeasydev avatar Jul 12 '15 19:07 lazyeasydev

ohh well ok :laughing: yeah that might be a problem haha

M4GNV5 avatar Jul 12 '15 20:07 M4GNV5

Temporary hotfix in a22aa83c02784ff19e4682a707c0de8dc3931228. It would be nice to have an official solution from KaTeX though, so I'll keep this issue open.

AndrewBelt avatar Jul 12 '15 23:07 AndrewBelt