diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-03-05 09:50:26 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-03-05 09:50:26 +0000 |
commit | 5777ee0e1a8bf0652aff75bb2c316c5bbbb4b854 (patch) | |
tree | e410cb36f9345a0aa46b735ca2128da55a68c152 /src/or/command.c | |
parent | 6a4e304d9e613b613e208bb0f11ec44c3fc30150 (diff) | |
download | tor-5777ee0e1a8bf0652aff75bb2c316c5bbbb4b854.tar.gz tor-5777ee0e1a8bf0652aff75bb2c316c5bbbb4b854.zip |
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
Diffstat (limited to 'src/or/command.c')
-rw-r--r-- | src/or/command.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |