From 40bc9b333b357fdcad1f905f05338d4696b62ddb Mon Sep 17 00:00:00 2001 From: David Troy Date: Thu, 13 Apr 2006 17:24:37 +0000 Subject: git-svn-id: http://svncommunity.digium.com/svn/astmanproxy/branches/1.21pre@111 f02b47b9-160a-0410-81a6-dc3441afb0ec --- src/xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xml.c b/src/xml.c index 72dc4fb..7bf1380 100644 --- a/src/xml.c +++ b/src/xml.c @@ -81,7 +81,7 @@ int _write(struct mansession *s, struct message *m) { xml_quote_string(m->headers[i], xmlescaped); lpos = xmlescaped; dpos = strstr(lpos, ": "); - if (dpos) { + if (dpos && *(lpos)!= ' ') { strcpy(outstring, " <"); strncat(outstring, lpos, dpos-lpos); strcat(outstring, " Value=\""); -- cgit