luci-base: cbi.js: fix sfh() signedness bug for strings with 3 trailing bytes
authorJo-Philipp Wich <jo@mein.io>
Mon, 19 Nov 2018 10:58:17 +0000 (11:58 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 19 Nov 2018 10:58:17 +0000 (11:58 +0100)
commitc55436e36fa9553373f14898c0dd04bad6ee4715
treee341c61631de638a4f34772b23777401cfbf95d3
parent2babc47ae2562cc123ea9048197996a0e3a223b1
luci-base: cbi.js: fix sfh() signedness bug for strings with 3 trailing bytes

Replace a sign-propagating right shift by a zero-filling right shift to avoid
calculating a wrong hash code in the three-trailing-bytes case.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/cbi.js