diff srclib/apr-util/xml/apr_xml.c.bac srclib/apr-util/xml/apr_xml.c -u

+++ srclib/apr-util/xml/apr_xml.c 2007-07-12 22:36:46.000000000 +0900
@@ -547,7 +547,7 @@

       if (c == '<' || c == '>')
           extra += 3;         /* < or > */
       else if (c == '&')

+ extra += 2; /* %26; */

       else if (quotes && c == '"')
           extra += 5;         /* " */
    }

@@ -571,11 +571,9 @@

           *qscan++ = ';';
       }
       else if (c == '&') {

+ *qscan++ = '%';
+ *qscan++ = '2';
+ *qscan++ = '6';

       }
       else if (quotes && c == '"') {
           *qscan++ = '&';

スポンサードリンク