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 = ' '; } }