From 5e6093a3234d929744c9500eb6010551b93b8a5e Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 3 Aug 2007 16:26:32 +0000 Subject: [PATCH] stupidly forgot to include linefeed and carraige return in ok chars for vars thus breaking bypass_media mode for who knows how long... git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5563 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/include/switch_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/switch_utils.h b/src/include/switch_utils.h index 8d11bbe95d..244965ea29 100644 --- a/src/include/switch_utils.h +++ b/src/include/switch_utils.h @@ -182,7 +182,7 @@ static inline char *switch_clean_string(char *s) char *p; for (p = s; p && *p; p++) { uint8_t x = (uint8_t) *p; - if (x < 32 || x > 127) { + if ((x < 32 || x > 127) && x != '\n' && x != '\r') { *p = ' '; } }