]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
present from tony
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 19 Oct 2006 19:09:51 +0000 (19:09 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 19 Oct 2006 19:09:51 +0000 (19:09 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3111 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/event_handlers/mod_event_socket/mod_event_socket.c

index 03e1bca2be7d404f3760d1a27b5af612b1b1c4ad..4ada1d7fc3730de2621af3ff39d1a97a6a70a221 100644 (file)
@@ -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) {