Skip to content
This repository has been archived by the owner on Sep 24, 2022. It is now read-only.

add HTML_SKIP_SCRIPT #31

Closed
wants to merge 2 commits into from
Closed

add HTML_SKIP_SCRIPT #31

wants to merge 2 commits into from

Conversation

qingfeng
Copy link

@qingfeng qingfeng commented Apr 7, 2013

pls, review... thanks

@ghost ghost assigned FSX Apr 7, 2013
@FSX
Copy link
Owner

FSX commented Apr 7, 2013

Seems good to me. Looks like a good addition. Thanks!

I don't want the Sundown C files in Misaka to be different from the the original Sundown C files, because it makes updating the Sundown files harder. So I'm planning to maintain my own Sundown fork for Misaka, because Sundown isn't really maintained anymore. Only the Sundown C code in Redcarpet.

I'll get that done first and notify you. I can commit the changes for you and mention you or you send a new pull request.

@qingfeng
Copy link
Author

qingfeng commented Apr 8, 2013

I'll get that done first and notify you. I can commit the changes for you and mention you or you send a new pull request.

OK :)

@FSX
Copy link
Owner

FSX commented Apr 11, 2013

Some unit tests need to be made to ensure nothing (1) comes through.

@qingfeng
Copy link
Author

Some unit tests need to be made to ensure nothing (1) comes through.

done~ pls, review~

@FSX
Copy link
Owner

FSX commented Apr 16, 2013

Reviewing, need some more time.

@FSX
Copy link
Owner

FSX commented Apr 22, 2013

The code that recognizes tags in Sundown isn't really good. If you, for example, write the <script> tags in uppercase characters they won't be filtered out. And it means that it itsn't really safe to use.

I'm going to do some research on making this better.

@qingfeng
Copy link
Author

style tags have the same problem? @FSX

@FSX
Copy link
Owner

FSX commented Apr 22, 2013

Yes, everything that deals with tag skipping.

@FSX
Copy link
Owner

FSX commented Apr 24, 2013

I almost forgot this, but we also need to check tag attributes that can contain JavaScript.

@qingfeng
Copy link
Author

I almost forgot this, but we also need to check tag attributes that can contain JavaScript.

Can you give an example? thanks

@FSX
Copy link
Owner

FSX commented Apr 25, 2013

Things like this:

<img src="javascript:alert('bleep')">
<img src="image.jpg" onmouseover="javascript:alert('bleep')">

@qingfeng
Copy link
Author

qingfeng commented May 2, 2013

So, you want to

before:

<img src="javascript:alert('bleep')">

after:

<img src="">

Like this?

@FSX
Copy link
Owner

FSX commented May 2, 2013

Yes.

@FSX FSX closed this Jul 11, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants