Ján Tomko 7eb973eec1 Strip control codes in virBufferEscapeString
These cannot be represented in XML.

We have been stripping them, but only if the string had
characters that needed escaping: <>"'&

Extend the strcspn check to include control codes, and strip
them even if we don't do any escaping.

https://bugzilla.redhat.com/show_bug.cgi?id=1184131
https://bugzilla.redhat.com/show_bug.cgi?id=1066564
(cherry picked from commit aeb5262e4397528d582682471cb8075141189465)
Signed-off-by: Ján Tomko <jtomko@redhat.com>

Conflict:
  missing struct testBufAddStrData
2015-04-15 19:43:24 +02:00
..
2014-07-24 18:56:37 +04:00
2014-09-03 09:36:13 -06:00
2014-07-16 13:35:26 +02:00
2014-07-16 13:35:26 +02:00
2014-01-01 16:34:13 +00:00
2012-04-02 09:33:54 -06:00
2014-09-18 13:37:12 +04:00
2014-08-19 20:50:22 +04:00
2014-09-03 09:36:13 -06:00
2014-09-04 15:18:43 -06:00
2014-08-18 20:36:24 -06:00
2013-07-29 13:09:39 -06:00
2013-03-19 13:13:28 -06:00
2013-10-08 12:39:30 +01:00
2013-10-14 10:31:01 +01:00
2014-04-08 11:15:55 +01:00
2014-04-21 16:49:08 -06:00
2014-08-18 20:36:24 -06:00
2014-08-18 20:36:24 -06:00