[Mono-dev] [PATCH] HTML encode attributes that might need encoding

Dean Brettle dean at brettle.com
Sat Jul 26 00:52:34 EDT 2008


Hi all,

Please review the attached small patch and let me know if it is OK to commit
this to mono-2-0 and trunk.  All existing tests pass, but I haven't added
any new tests specifically for the changes.  It's not clear whether it is
worth the effort for this change.  Feedback welcome.  Here's the ChangeLog
entry:

2008-07-25  Dean Brettle <dean at brettle.com>

    * HtmlControl.cs (PreProcessRelativeReference),
    HtmlForm.cs (RenderAttributes), HtmlInputButton (RenderAttributes),
    HtmlInputRadioButton (RenderAttributes), HtmlSelect (RenderChildren):
    Encode attributes that could contain HTML special chars.

Thanks,
--Dean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080725/a2612e9d/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: attrEncoding.patch
Type: text/x-patch
Size: 3155 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080725/a2612e9d/attachment.bin 


More information about the Mono-devel-list mailing list