Skip to content

Commit 8bba488

Browse files
authoredAug 6, 2020
Previewers: Fixed XSS (#2506)
1 parent 158caf5 commit 8bba488

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎plugins/previewers/prism-previewers.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,8 @@
353353
'</marker>' +
354354
'</defs>' +
355355
'<path d="M0,100 C20,50, 40,30, 100,0" />' +
356-
'<line x1="0" y1="100" x2="20" y2="50" marker-start="url(' + location.href + '#prism-previewer-easing-marker)" marker-end="url(' + location.href + '#prism-previewer-easing-marker)" />' +
357-
'<line x1="100" y1="0" x2="40" y2="30" marker-start="url(' + location.href + '#prism-previewer-easing-marker)" marker-end="url(' + location.href + '#prism-previewer-easing-marker)" />' +
356+
'<line x1="0" y1="100" x2="20" y2="50" marker-start="url(#prism-previewer-easing-marker)" marker-end="url(#prism-previewer-easing-marker)" />' +
357+
'<line x1="100" y1="0" x2="40" y2="30" marker-start="url(#prism-previewer-easing-marker)" marker-end="url(#prism-previewer-easing-marker)" />' +
358358
'</svg>';
359359
});
360360
},

0 commit comments

Comments
 (0)