avoid using ' in peer ids, since there are buggy trackers that don't support it

This commit is contained in:
Arvid Norberg
2009-05-14 21:07:49 +00:00
parent c459262c51
commit 1eda63c4f5

View File

@@ -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();