luci/modules/luci-base
Jo-Philipp Wich 2babc47ae2 luci-base: cbi.js: fix sfh() hash calculation over multibyte sequences
The C side implementation of the hash operates on bytes while the JS variant
operated on UTF-16 codepoints, leading to miscalculations on input strings
containing multibyte sequences.

Recode the given string to an internal UTF-8 byte representation and
calculate the hash over that.

Fixes client side mapping of translation strings containing non-ASCII
characters.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-19 11:50:25 +01:00
..
htdocs luci-base: cbi.js: fix sfh() hash calculation over multibyte sequences 2018-11-19 11:50:25 +01:00
luasrc luci-base: dispatcher: add login indication on 403 errors 2018-11-16 21:11:34 +01:00
po luci-base: update Ukrainian translation 2018-11-16 21:59:41 +02:00
root luci-base: redirect root path to /cgi-bin/luci/ 2018-10-10 13:04:17 +08:00
src luci-base: template: add translation iterator function 2018-11-05 11:01:45 +01:00
Makefile fix compilation failure when luasrcdiet is being copied to non existing directory 2018-07-30 19:32:37 +05:30