From d63e37eb8967230214e283c71746a8dbbc2151b3 Mon Sep 17 00:00:00 2001 From: "psyc://psyced.org/~lynX" <@> Date: Fri, 26 Feb 2010 21:59:09 +0100 Subject: [PATCH] + --- CHANGESTODO | 3 +++ world/net/spyc/dispatch.i | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGESTODO b/CHANGESTODO index 8635d99..cf904f2 100644 --- a/CHANGESTODO +++ b/CHANGESTODO @@ -3992,6 +3992,9 @@ jabber/active smtp/outgoing, smtp/user + implementation of outgoing mail queue === 201002 ============================================================ +* +- in many spots is_localhost() was being called + with hostnames that have not been lowercased. oops!? person, user + allow multiple psyc clients per user, thx tg usercmd diff --git a/world/net/spyc/dispatch.i b/world/net/spyc/dispatch.i index 5749612..4abc67e 100644 --- a/world/net/spyc/dispatch.i +++ b/world/net/spyc/dispatch.i @@ -49,7 +49,7 @@ void dispatch(mixed header_vars, mixed varops, mixed method, mixed body) { DISPATCHERROR("target is not an uniform\n") } // FIXME relaying support here? - if (!is_localhost(local_host(u[UHost]))) { + if (!is_localhost(lower_case(u[UHost]))) { DISPATCHERROR("target is not configured on this server\n") } }