ronin-rb / ronin-support

A support library for Ronin. Like activesupport, but for hacking!
https://ronin-rb.dev
GNU Lesser General Public License v3.0
27 stars 10 forks source link

Ensure that `unescape` methods can handle ASCII-8BIT encoded UTF-8 strings #511

Closed postmodern closed 5 months ago

postmodern commented 5 months ago

Ensure that all unescape methods in ronin/support/encoding/ can handle unescaping ASCII-8BIT encoded UTF-8 strings:

str = "\\n\xC2\x85\\u2028\\u2029".b # \xC2\x85 is a UTF-8 raw code point
Ronin::Support::Encoding::JS.unescape(str)
postmodern commented 5 months ago

Ended up fixing this in ronin-rb/ronin-web-spider#23.