1
0
Fork 0

misc. fix - auth in mmsbox

This commit is contained in:
bagyenda 2007-08-07 08:20:24 +00:00
parent 96811a10b7
commit d7d97c695d
1 changed files with 2 additions and 1 deletions

View File

@ -1168,7 +1168,8 @@ static void sendmms_func(void *unused)
username = http_cgi_variable(cgivars, "username");
password = http_cgi_variable(cgivars, "password");
octstr_strip_blanks(username);
octstr_strip_blanks(password);
if ((u = auth_user(username, password)) != NULL &&
is_allowed_ip(sendmms_port.allow_ip, sendmms_port.deny_ip, ip)) {
Octstr *data, *ctype = NULL, *mmc, *to, *from, *dlr_url;