brianmario / escape_utils

Faster string escaping routines for your ruby apps
MIT License
513 stars 52 forks source link

fixes buffer-over-read #11

Closed holysugar closed 13 years ago

holysugar commented 13 years ago

This patch fixes buffer-over-read issue in unescape_url() and unescape_uri() .

The buffer-over-read issue may return a shorter result when reading not intended "%xx". If in utf-8 string, this raises exception like "invalid byte sequence in UTF-8".

brianmario commented 13 years ago

Pulled and merged, thanks for the patch!