diff options
author | Cheng-Han, Wu | 2016-03-04 23:17:59 +0800 |
---|---|---|
committer | Cheng-Han, Wu | 2016-03-04 23:17:59 +0800 |
commit | 049eae502456cac83b5266df6defaba4d130d820 (patch) | |
tree | 50424163dfe64f603b7fdbf0fa643fa617343e14 /public | |
parent | 845ef9bad6b9f5ff471b62505f9e39300297a3a4 (diff) |
Fixed filter XSS should allow ordered list specify start number
Diffstat (limited to '')
-rw-r--r-- | public/js/render.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/public/js/render.js b/public/js/render.js index dadd52f7..9c1fa273 100644 --- a/public/js/render.js +++ b/public/js/render.js @@ -16,6 +16,10 @@ var filterXSSOptions = { // escape its value using built-in escapeAttrValue function return name + '="' + filterXSS.escapeAttrValue(value) + '"'; } + // allow ol specify start number + if (tag === 'ol' && name === 'start') { + return name + '="' + filterXSS.escapeAttrValue(value) + '"'; + } } }; |