Improve XML sanitization in NOTIFYs, especially for presence subtypes and messages.
authorMark Michelson <mmichelson@digium.com>
Wed, 7 May 2014 15:29:18 +0000 (15:29 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 7 May 2014 15:29:18 +0000 (15:29 +0000)
commit065bd7d7039a10663fb06be7808e741c3f79e7f6
tree1879039cd14c4ddca7b3709aac1ea6b6cf23c1f7
parent9eae6c3f5bad40f3c23f34be9c8d33f67da49c72
Improve XML sanitization in NOTIFYs, especially for presence subtypes and messages.

Embedded carriage return line feed combinations may appear in presence subtypes
and messages since they may be derived from user input in an instant messenger
client. As such, they need to be properly escaped so that XML parsers do not
vomit when the messages are received.
........

Merged revisions 413372 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@413381 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_pjsip/presence_xml.c
res/res_pjsip_pidf_digium_body_supplement.c