Alessandro Vesely writes:

On 25/Nov/10 21:50, Sam Varshavchik wrote:
Alessandro Vesely writes:
How about writing something different than spaces, e.g. <noscript/> or
<!--  -->?

That's a very good idea. I should've thought of it myself…

I attach a tentative patch.  The largest chunk is for conditional
standalone compiling (so I've lightly tested it, although I haven't
installed it yet.)

As it turns out, MS office produces an <html> tag full of
xmlns-definition attributes, which is about 2Kb long and thus puts the
sanitizer in DOS attack mode for the whole entity.  I've changed it so
as to affect the current tag only.

Besides that and the new nuke() function, you'll find a couple of
paranoid out-of-memory checks, conversion of funny <o:p>'s (office
paragraph), and removal of "class" attributes.  Not thoroughly good,
but I hope I haven't worsened it either.  How does it look like?

Looks good. I tweaked some of the paranoia, a little bit.

https://sourceforge.net/projects/courier/files/courier-devel/20101127/courier-0.65.2.20101127.tar.bz2/download

Attachment: pgpUMAVu71pCb.pgp
Description: PGP signature

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to