Issue 69 in dircproxy: Server password with : dont work

2 views
Skip to first unread message

codesite...@google.com

unread,
Mar 27, 2009, 12:13:55 AM3/27/09
to dircpr...@googlegroups.com
Status: Assigned
Owner: francois...@francoisharvey.ca
Labels: Type-Defect Priority-Medium

New issue 69 by francois...@francoisharvey.ca: Server password with : dont
work
http://code.google.com/p/dircproxy/issues/detail?id=69

<Ayukawa> Yeah, i thought maybe it might be breaking the password up, but
my C is beyond rusty, so trying to look through the code is essentially
pointless for me.
<Ayukawa> I could be completely off my rocker, again rusty with C. But
irc_server.c starting at line 141 it looks like it's just taking everything
after the last ':' it finds as the password, instead of everything after
the 2nd ':'. Dunno if that helps, or just makes me look like an idiot :)

if (strchr(server, ':') != strrchr(server, ':')) {
/* More than one :, second denotes password */
char *pass;

pass = strrchr(server, ':');
*(pass++) = 0;

if (strlen(pass))
p->serverpassword = x_strdup(pass);
}

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

Reply all
Reply to author
Forward
0 new messages