luci-base: ui.js: HTML escape uci changelog values

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2019-07-22 17:18:32 +02:00
parent a6c538a776
commit c67f052d91

View file

@ -1797,7 +1797,7 @@ return L.Class.extend({
return chg[1];
case 4:
return "'" + chg[3].replace(/'/g, "'\"'\"'") + "'";
return "'%h'".format(chg[3].replace(/'/g, "'\"'\"'"));
default:
return chg[m1-1];