craigmcc 2002/10/12 17:52:11 Modified: src/share/org/apache/struts/util ResponseUtils.java Log: Make ResponseUtils.filter() filter single quotes as well as double quotes. This is only being done because the use of this function was extended to be attribute values as well as template text. PR: 4776 Submitted by: Jon Ribbens <jon+apache-bugzilla at unequivocal.co.uk> Revision Changes Path 1.5 +7 -10 jakarta-struts/src/share/org/apache/struts/util/ResponseUtils.java Index: ResponseUtils.java =================================================================== RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/util/ResponseUtils.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- ResponseUtils.java 23 Jun 2002 14:43:15 -0000 1.4 +++ ResponseUtils.java 13 Oct 2002 00:52:11 -0000 1.5 @@ -101,12 +101,6 @@ * Filter the specified string for characters that are senstive to * HTML interpreters, returning the string with these characters replaced * by the corresponding character entities. - * <strong>Please Note:</strong> Apostrpohes (') will not be encoded since - * there is not a way to determine whether a left or right apostrophen was - * intended. See the following link for more details on HTML encodings: - * <a href="http://www.htmlhelp.com/reference/html40/entities/special.html"> - *http://www.htmlhelp.com/reference/html40/entities/special.html</a>. - * * * @param value The string to be filtered and returned */ @@ -131,6 +125,9 @@ break; case '"': result.append("""); + break; + case '\'': + result.append("'"); break; default: result.append(content[i]);
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>