summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Troy <dave@popvox.com>2006-04-13 17:25:13 +0000
committerDavid Troy <dave@popvox.com>2006-04-13 17:25:13 +0000
commit7ade07a3d3238b3f2b516c109fdee69c688bc992 (patch)
tree30260ec135af01fab9c4b102521ea876fbcbb1c4
parentd04144e41c0076359bbcee64cd2835f786cafac4 (diff)
downloadastmanproxy-7ade07a3d3238b3f2b516c109fdee69c688bc992.zip
astmanproxy-7ade07a3d3238b3f2b516c109fdee69c688bc992.tar.gz
astmanproxy-7ade07a3d3238b3f2b516c109fdee69c688bc992.tar.xz
git-svn-id: http://svncommunity.digium.com/svn/astmanproxy/trunk@112 f02b47b9-160a-0410-81a6-dc3441afb0ec
-rw-r--r--src/xml.c2
1 files changed, 1 insertions, 1 deletions
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=\"");