diff options
author | Badlop <badlop@process-one.net> | 2011-03-03 00:02:28 +0100 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2011-03-03 00:02:43 +0100 |
commit | e0d14c3b8d84f5249e388844f7901fed88b18209 (patch) | |
tree | 15c506d91bcf26dd3e21e55f2c1fe40bc9ff3e90 /src/ejabberd_captcha.erl | |
parent | mod_irc must send presence unavailable to the departing occupant (EJAB-1417) (diff) |
captcha_host must have the port number to get protocol (EJAB-1418)
Diffstat (limited to 'src/ejabberd_captcha.erl')
-rw-r--r-- | src/ejabberd_captcha.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ejabberd_captcha.erl b/src/ejabberd_captcha.erl index 455ffad9..0f3aee76 100644 --- a/src/ejabberd_captcha.erl +++ b/src/ejabberd_captcha.erl @@ -406,12 +406,12 @@ get_prog_name() -> get_url(Str) -> CaptchaHost = ejabberd_config:get_local_option(captcha_host), - TransferProt = atom_to_list(get_transfer_protocol(CaptchaHost)), case CaptchaHost of Host when is_list(Host) -> + TransferProt = atom_to_list(get_transfer_protocol(CaptchaHost)), TransferProt ++ "://" ++ Host ++ "/captcha/" ++ Str; _ -> - TransferProt ++ "://" ++ ?MYNAME ++ "/captcha/" ++ Str + "http://" ++ ?MYNAME ++ ":5280/captcha/" ++ Str end. get_transfer_protocol(CaptchaHost) -> |