[asterisk-commits] anthonyl: branch anthonyl/escape-filter2 r47488 - /team/anthonyl/escape-filte...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Nov 10 17:24:22 MST 2006


Author: anthonyl
Date: Fri Nov 10 18:24:22 2006
New Revision: 47488

URL: http://svn.digium.com/view/asterisk?view=rev&rev=47488
Log:
adding filtering to ast_log

Modified:
    team/anthonyl/escape-filter2/main/logger.c

Modified: team/anthonyl/escape-filter2/main/logger.c
URL: http://svn.digium.com/view/asterisk/team/anthonyl/escape-filter2/main/logger.c?view=diff&rev=47488&r1=47487&r2=47488
==============================================================================
--- team/anthonyl/escape-filter2/main/logger.c (original)
+++ team/anthonyl/escape-filter2/main/logger.c Fri Nov 10 18:24:22 2006
@@ -700,8 +700,10 @@
 			va_start(ap, fmt);
 			res = ast_dynamic_str_thread_set_va(&buf, BUFSIZ, &log_buf, fmt, ap);
 			va_end(ap);
-			if (res != AST_DYNSTR_BUILD_FAILED)
+			if (res != AST_DYNSTR_BUILD_FAILED) {
+				term_filter_escapes(buf->str);
 				fputs(buf->str, stdout);
+			}
 		}
 		return;
 	}
@@ -797,6 +799,7 @@
 				va_end(ap);
 				if (res != AST_DYNSTR_BUILD_FAILED) {
 					term_strip(buf->str, buf->str, buf->len);
+					term_filter_escapes(buf->str);
 					fputs(buf->str, chan->fileptr);
 					fflush(chan->fileptr);
 				}



More information about the asterisk-commits mailing list