[xml] libxml2 uri.c xmlURIEscape (with fix)
- From: Joel Young <jdy cs brown edu>
- To: xml gnome org
- Cc: jdy cs brown edu
- Subject: [xml] libxml2 uri.c xmlURIEscape (with fix)
- Date: Tue, 30 Jul 2002 20:34:50 -0400
Hi Daniel,
I found another issue with xmlURIEscape. It doesn't handle blanks in
the input string. I know blanks aren't valid but that's what
xmlURIEscape is s'posed to fix.
All that is needed to fix this is to add ' ' to IS_UNWISE in uri.c:
#define IS_UNWISE(p) \
(((*(p) == '{')) || ((*(p) == '}')) || ((*(p) == '|')) || \
((*(p) == '\\')) || ((*(p) == '^')) || ((*(p) == '[')) || \
((*(p) == ']')) || ((*(p) == ' ')) || ((*(p) == '`')))
------------
What do you think?
Joel Young
jdy cs brown edu
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]