auriemma 01/02/23 12:59:29
Modified: c/src/XMLSupport FormatterToHTML.cpp
Log:
Ignore % in URI to avoid escaping. Bug fix reported by Holger Floerke.
Revision Changes Path
1.51 +0 -22 xml-xalan/c/src/XMLSupport/FormatterToHTML.cpp
Index: FormatterToHTML.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XMLSupport/FormatterToHTML.cpp,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- FormatterToHTML.cpp 2001/02/09 22:54:02 1.50
+++ FormatterToHTML.cpp 2001/02/23 20:59:28 1.51
@@ -956,28 +956,6 @@
accumContent(XalanUnicode::charSemicolon);
}
}
- else if(ch == XalanUnicode::charPercentSign)
- {
- // If the character is a '%' number number, try to
avoid double-escaping.
- // There is a question if this is legal behavior.
- if (i + 2 < len &&
- XalanXMLChar::isDigit(string[i + 1]) == true &&
- XalanXMLChar::isDigit(string[i + 2]) == true)
- {
- accumContent(ch);
- }
- else
- {
- if (m_escapeURLs == true)
- {
- accumHexNumber(ch);
- }
- else
- {
- accumContent(ch);
- }
- }
- }
// Since http://www.ietf.org/rfc/rfc2396.txt refers to the URI
grammar as
// not allowing quotes in the URI proper syntax, nor in the
fragment
// identifier, we believe that double quotes should be escaped.