xml: simplify entity decoding for attribute values
commitd7bc8f9ecd0782b29468ab147fe58e919c894a0f
authorStefan Becker <stefan.becker@nokia.com>
Mon, 9 Aug 2010 15:28:34 +0000 (9 18:28 +0300)
committerStefan Becker <stefan.becker@nokia.com>
Mon, 9 Aug 2010 15:28:34 +0000 (9 18:28 +0300)
tree91afb3a2057324875f268235a1ccbf858e36f7cf
parentf264b93590916f9f223528c8c97c823009b4dad8
xml: simplify entity decoding for attribute values

Further studying of libxml2 documentation and some testing revealed that we
don't need a general purpose entity replacement routine after all. All entities
are decoded except "&amp;". This is replaced by the equivalent "&#38;" which
we can handle with a simple replace() call.

Tested by creating a SIPE group with the name "Test & < > " ' Test" which is
handled correctly.
src/core/sipe-xml.c