]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
stupidly forgot to include linefeed and carraige return in ok chars for vars thus...
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 3 Aug 2007 16:26:32 +0000 (16:26 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 3 Aug 2007 16:26:32 +0000 (16:26 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5563 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_utils.h

index 8d11bbe95d3abb28bd6bf939ce214defc0d327ee..244965ea2981e8f0dbbe7e1f073d7778f5e0ced4 100644 (file)
@@ -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 = ' ';
                }
        }