From 1eda63c4f57b31f464f462e09e4015177a31a1a5 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 14 May 2009 21:07:49 +0000 Subject: [PATCH] avoid using ' in peer ids, since there are buggy trackers that don't support it --- src/session_impl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/session_impl.cpp b/src/session_impl.cpp index afee8a582..531a1eebb 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -310,8 +310,9 @@ namespace aux { , m_peer_id.begin()); // http-accepted characters: + // excluding ', since some buggy trackers don't support that static char const printable[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" - "abcdefghijklmnopqrstuvwxyz-_.!~*'()"; + "abcdefghijklmnopqrstuvwxyz-_.!~*()"; // the random number for (unsigned char* i = m_peer_id.begin() + print.length();