Skip to content

Commit 049eae5

Browse files
committed
Fixed filter XSS should allow ordered list specify start number
1 parent 845ef9b commit 049eae5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

public/js/render.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ var filterXSSOptions = {
1616
// escape its value using built-in escapeAttrValue function
1717
return name + '="' + filterXSS.escapeAttrValue(value) + '"';
1818
}
19+
// allow ol specify start number
20+
if (tag === 'ol' && name === 'start') {
21+
return name + '="' + filterXSS.escapeAttrValue(value) + '"';
22+
}
1923
}
2024
};
2125

0 commit comments

Comments
 (0)