mirror of
https://github.com/openwrt/luci.git
synced 2026-07-12 22:44:35 +04:00
luci-app-upnp: escape description field in output
Since underlying upnpd does not sanitize, ensure to HTML escape UPnP lease description to prevent XSS. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
+1
-1
@@ -69,7 +69,7 @@ return baseclass.extend({
|
||||
rule.extport,
|
||||
rule.proto,
|
||||
expires_str,
|
||||
rule.descr,
|
||||
'%h'.format(rule.descr),
|
||||
E('button', {
|
||||
'class': 'btn cbi-button-remove',
|
||||
'click': L.bind(handleDelRule, this, rule.num)
|
||||
|
||||
@@ -65,7 +65,7 @@ return view.extend({
|
||||
rule.extport,
|
||||
rule.proto,
|
||||
expires_str,
|
||||
rule.descr,
|
||||
'%h'.format(rule.descr),
|
||||
E('button', {
|
||||
'class': 'btn cbi-button-remove',
|
||||
'click': L.bind(handleDelRule, this, rule.num)
|
||||
|
||||
Reference in New Issue
Block a user