summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Troy <dave@popvox.com>2006-04-13 17:24:37 +0000
committerDavid Troy <dave@popvox.com>2006-04-13 17:24:37 +0000
commit40bc9b333b357fdcad1f905f05338d4696b62ddb (patch)
tree30260ec135af01fab9c4b102521ea876fbcbb1c4
parent9dc19ee358039597f54cda2471b4f98f958ad47a (diff)
downloadastmanproxy-40bc9b333b357fdcad1f905f05338d4696b62ddb.tar.gz
astmanproxy-40bc9b333b357fdcad1f905f05338d4696b62ddb.tar.xz
astmanproxy-40bc9b333b357fdcad1f905f05338d4696b62ddb.zip
git-svn-id: http://svncommunity.digium.com/svn/astmanproxy/branches/1.21pre@111 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=\"");