summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorCheng-Han, Wu2016-03-04 23:17:59 +0800
committerCheng-Han, Wu2016-03-04 23:17:59 +0800
commit049eae502456cac83b5266df6defaba4d130d820 (patch)
tree50424163dfe64f603b7fdbf0fa643fa617343e14 /public
parent845ef9bad6b9f5ff471b62505f9e39300297a3a4 (diff)
Fixed filter XSS should allow ordered list specify start number
Diffstat (limited to '')
-rw-r--r--public/js/render.js4
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) + '"';
+ }
}
};