Fix markdown XSS#11
Conversation
|
It looks like the modified marked lib tosses the linksInNewTab support I added to Marked in 6acde85 |
|
Right, I didn't saw that you have added this commit. Sorry. Is there not a cleaner way to add |
|
In such that I don't actually know any JavaScript and someone had already made that handy change in a different unmerged PR to marked.js... it is the cleanest way I know how, literally. ;) I guess the question is if the two adjustments to marked.js are mutually exclusive or if it's possible to merge them. It is really hard to tell on minified JS. :P |
|
Yes, it's hard to work on minified JS :) What version of marked, scrumblr is currently using? Is it a version that includes this PR markedjs/marked#592 ? Maybe the current file is ok, because I didn't checked it, I assume that it wasn't updated because it was different. BTW, be careful to not use the |
|
I don't know any JS neither, but I know that directly modifying lib files is not a good idea, because it's very hard to keep track when you have to update them (especially on minified version). |
|
Sorry, I didn't saw your comment on 6acde85. So the version of marked inside the |
|
By the way, you should also add |
|
@ocdtrekkie I have added 7d7ca5c to my PR. Can you check that it's working? I'm not sure, because I have some |
|
@ocdtrekkie Up :) Do you need help or more info? |
|
Sorry, I just haven't tackled going in and testing this yet. |
|
No problem. Keep me updated when you will do. |
This MR fixes the stored XSS described here.
There are 2 commits :
Marked wasn't updated because of markedjs/marked#815