You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Peter Davis pe...@pdavis.cx on 2003/01/28 18:49:34 UTC
[PATCH] Fix issue 1118 - Second Try
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday 28 January 2003 07:29, cmpilato@collab.net wrote:
Nice work. A few cleanups and it's good to go. Care to resubmit?
I agree with all your suggested changes. I should have asked about the
argument order first, though, cuz that's a lot of work :-) (smacks head).
Log message:
Fix for issue 1118: properly escape whitespace in XML attribute
values, and update all callers of svn_xml_escape_* to pass the new
argument.
* libsvn_subr/xml.c (xml_escape):
New argument is_attribute. If escaping an attribute, additionally
escape spaces, tabs, newlines, and carriage returns. Don't escape
single- or double-quotes unless escaping an attribute.
* libsvn_subr/xml.c, include/svn_xml.h
(svn_escape_string, svn_escape_cstring, svn_escape_stringbuf):
New argument is_attribute, passed verbatim to xml_escape.
* mod_dav_svn/deadprops.c, clients/cmdline/log-cmd.c,
libsvn_ra_dav/commit.c, libsvn_ra_dav/fetch.c:
Update callers of svn_escape_* to use new is_attribute arg, passing TRUE
or FALSE as appropriate.
- --
Peter Davis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+NtC+hDAgUT1yirARAn4SAJ44GPQpfCBEon8IIQwKnBygE10OlQCggdOW
3rX7hIUib6Q2uwXgeEXDFRI=
=Yjju
-----END PGP SIGNATURE-----
Re: [PATCH] Fix issue 1118 - Second Try
Posted by Peter Davis pe...@pdavis.cx.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Here's a better log message, since I noticed you didn't like the way I
listed multiple filenames:
Fix for issue 1118: properly escape whitespace in XML attribute
values, and update all callers of svn_xml_escape_* to pass the new
argument.
* libsvn_subr/xml.c
(xml_escape): New argument is_attribute. If escaping an attribute,
additionally escape spaces, tabs, newlines, and carriage returns.
Don't escape single- or double-quotes unless escaping an attribute.
* libsvn_subr/xml.c
* include/svn_xml.h
(svn_escape_string, svn_escape_cstring, svn_escape_stringbuf):
New argument is_attribute, passed verbatim to xml_escape.
* mod_dav_svn/deadprops.c
* clients/cmdline/log-cmd.c,
* libsvn_ra_dav/commit.c
* libsvn_ra_dav/fetch.c:
Update callers of svn_escape_* to use new is_attribute arg, passing
TRUE or FALSE as appropriate.
- --
Peter Davis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+NtIihDAgUT1yirARAoJIAKCUn4zWpYL1YLxMUx3kzwJH1uOj2ACeMu2m
FFrmzvZQBenDEwrBVElWCAc=
=dcC4
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org