summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Troy <dave@popvox.com>2006-04-13 17:31:01 +0000
committerDavid Troy <dave@popvox.com>2006-04-13 17:31:01 +0000
commit055f24c3491bde8bdfdc1cd754b0cea35edbefe2 (patch)
tree9128d082c773f25b90d569e080e5d637f516295a
parent40bc9b333b357fdcad1f905f05338d4696b62ddb (diff)
downloadastmanproxy-055f24c3491bde8bdfdc1cd754b0cea35edbefe2.tar.gz
astmanproxy-055f24c3491bde8bdfdc1cd754b0cea35edbefe2.tar.xz
astmanproxy-055f24c3491bde8bdfdc1cd754b0cea35edbefe2.zip
git-svn-id: http://svncommunity.digium.com/svn/astmanproxy/branches/1.21pre@113 f02b47b9-160a-0410-81a6-dc3441afb0ec
-rw-r--r--TODO1
-rw-r--r--src/xml.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/TODO b/TODO
index a94b30e..d819428 100644
--- a/TODO
+++ b/TODO
@@ -1,3 +1,4 @@
+trap action=command in xml.c; remove arbitrary detection of unparsed data
write SOAP methods for http.c to use
clean up reconnect to lost asterisk server (socket reuse)
clean up debugmsg instances to add if (debug)
diff --git a/src/xml.c b/src/xml.c
index 7bf1380..b5865f0 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 && *(lpos)!= ' ') {
+ if (dpos && *(lpos)!= ' ' && strlen(xmlescaped)<30 ) {
strcpy(outstring, " <");
strncat(outstring, lpos, dpos-lpos);
strcat(outstring, " Value=\"");