[Freeswitch-svn] [commit] r3111 -	freeswitch/trunk/src/mod/event_handlers/mod_event_socket
    Freeswitch SVN 
    anthm at freeswitch.org
       
    Thu Oct 19 15:09:52 EDT 2006
    
    
  
Author: anthm
Date: Thu Oct 19 15:09:51 2006
New Revision: 3111
Modified:
   freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c
Log:
present from tony
Modified: freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c
==============================================================================
--- freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c	(original)
+++ freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c	Thu Oct 19 15:09:51 2006
@@ -502,12 +502,16 @@
 		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) {
    
    
More information about the Freeswitch-svn
mailing list