luci-base: html escape values in uci changes display
authorJo-Philipp Wich <jo@mein.io>
Tue, 10 Sep 2019 15:16:01 +0000 (17:16 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 10 Sep 2019 15:16:01 +0000 (17:16 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/luasrc/view/admin_uci/changelog.htm

index 9d6267cf31af1cbc475c428f2219e4f730bfa7dd..051e250db86bca82e712de8f1d953e9eac4f974b 100644 (file)
@@ -48,7 +48,7 @@
                                                        return delta[2]
                                                end
                                        elseif n == "4" then
-                                               return util.shellquote(delta[4])
+                                               return pcdata(util.shellquote(delta[4]))
                                        else
                                                return delta[tonumber(n)]
                                        end