diff options
author | Alexander Færøy <ahf@torproject.org> | 2020-01-15 23:24:18 +0000 |
---|---|---|
committer | Alexander Færøy <ahf@torproject.org> | 2020-01-15 23:41:58 +0000 |
commit | ca9a5390ff56cb809b2afa2645863ebd7b12262d (patch) | |
tree | 8e034b0c61e97e1979e5bce11ed45418c362086a /src/feature | |
parent | 399ec3130be818825e01b5ab0c8a8aac1845b29c (diff) | |
download | tor-ca9a5390ff56cb809b2afa2645863ebd7b12262d.tar.gz tor-ca9a5390ff56cb809b2afa2645863ebd7b12262d.zip |
Don't escape the bridge distribution value.
We already check if there are invalid values in
check_bridge_distribution_setting() and reject the value if that is the
case. We can therefore only have strings of [A-Z] | [a-z] | [0-9] | '-'
| '_' here which is according to the directory specification.
See: https://bugs.torproject.org/32753
Diffstat (limited to 'src/feature')
-rw-r--r-- | src/feature/relay/router.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/feature/relay/router.c b/src/feature/relay/router.c index 2b86232279..e24e499971 100644 --- a/src/feature/relay/router.c +++ b/src/feature/relay/router.c @@ -2920,8 +2920,7 @@ router_dump_router_to_string(routerinfo_t *router, // forwarding what the user wrote in their torrc directly. tor_strlower(bd); - smartlist_add_asprintf(chunks, "bridge-distribution-request %s\n", - escaped(bd)); + smartlist_add_asprintf(chunks, "bridge-distribution-request %s\n", bd); tor_free(bd); } |