From 5777ee0e1a8bf0652aff75bb2c316c5bbbb4b854 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sun, 5 Mar 2006 09:50:26 +0000 Subject: Add some functions to escape values from the network before sending them to the log. Use them everywhere except for routerinfo->plaftorm, routerinfo->contact_info, and rend*.c. (need sleep now) svn:r6087 --- src/or/command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/or/command.c') diff --git a/src/or/command.c b/src/or/command.c index 590f3e181c..de13627d1c 100644 --- a/src/or/command.c +++ b/src/or/command.c @@ -202,8 +202,8 @@ command_process_create_cell(cell_t *cell, connection_t *conn) cell->circ_id, (int)(time(NULL) - conn->timestamp_created)); if (router) log_fn(LOG_PROTOCOL_WARN, LD_PROTOCOL, - "Details: nickname '%s', platform '%s'.", - router->nickname, router->platform); + "Details: nickname \"%s\", platform %s.", + router->nickname, escaped(router->platform)); return; } -- cgit v1.2.3-54-g00ecf