From 6f30fe29b22f249a6a63b2f88248572977551252 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 3 Dec 2007 16:06:47 +0000 Subject: [PATCH] fix for MODEVENT-2 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6475 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/event_handlers/mod_event_socket/mod_event_socket.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 247f5b3cea..8aefc29725 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 @@ -682,7 +682,12 @@ static switch_status_t parse_command(listener_t * listener, switch_event_t *even strip_cr(cmd); ename = cmd + 9; - if (*ename == '\r' || *ename == '\n') { + + while (ename && *ename == '\t' || *ename == ' ') { + ++ename; + } + + if (ename && (*ename == '\r' || *ename == '\n')) { ename = NULL; }