From: Anthony Minessale Date: Thu, 19 Oct 2006 19:09:51 +0000 (+0000) Subject: present from tony X-Git-Tag: v1.0-beta1~1874 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ce984a90fe62caa9b77c166391222aef814b5f3b;p=thirdparty%2Ffreeswitch.git present from tony git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3111 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/event_handlers/mod_event_socket/mod_event_socket.c b/src/mod/event_handlers/mod_event_socket/mod_event_socket.c index 03e1bca2be..4ada1d7fc3 100644 --- a/src/mod/event_handlers/mod_event_socket/mod_event_socket.c +++ b/src/mod/event_handlers/mod_event_socket/mod_event_socket.c @@ -502,12 +502,16 @@ static switch_status_t parse_command(listener_t *listener, switch_event_t *event switch_core_session_t *session; char *uuid = cmd + 8; - if (uuid) { while(*uuid == ' ') { uuid++; } - strip_cr(uuid); + + if (*uuid == '\r' || *uuid == '\n') { + uuid = NULL; + } else { + strip_cr(uuid); + } } if (!uuid) {