Lines 587-593
Link Here
|
587 |
{ |
587 |
{ |
588 |
case ServMgr::AUTH_HTTPBASIC: |
588 |
case ServMgr::AUTH_HTTPBASIC: |
589 |
if (http.isHeader("Authorization")) |
589 |
if (http.isHeader("Authorization")) |
590 |
http.getAuthUserPass(user,pass); |
590 |
http.getAuthUserPass(user,pass, sizeof(user), sizeof(pass)); |
591 |
break; |
591 |
break; |
592 |
case ServMgr::AUTH_COOKIE: |
592 |
case ServMgr::AUTH_COOKIE: |
593 |
if (http.isHeader("Cookie")) |
593 |
if (http.isHeader("Cookie")) |
Lines 1405-1411
Link Here
|
1405 |
|
1405 |
|
1406 |
} |
1406 |
} |
1407 |
// ----------------------------------- |
1407 |
// ----------------------------------- |
1408 |
void Servent::readICYHeader(HTTP &http, ChanInfo &info, char *pwd) |
1408 |
void Servent::readICYHeader(HTTP &http, ChanInfo &info, char *pwd, size_t plen) |
1409 |
{ |
1409 |
{ |
1410 |
char *arg = http.getArgStr(); |
1410 |
char *arg = http.getArgStr(); |
1411 |
if (!arg) return; |
1411 |
if (!arg) return; |
Lines 1429-1436
Link Here
|
1429 |
info.desc.set(arg,String::T_ASCII); |
1429 |
info.desc.set(arg,String::T_ASCII); |
1430 |
info.desc.convertTo(String::T_UNICODE); |
1430 |
info.desc.convertTo(String::T_UNICODE); |
1431 |
|
1431 |
|
1432 |
}else if (http.isHeader("Authorization")) |
1432 |
}else if (http.isHeader("Authorization")){ |
1433 |
http.getAuthUserPass(NULL,pwd); |
1433 |
if(pwd) |
|
|
1434 |
http.getAuthUserPass(NULL,pwd, 0, plen); |
1435 |
} |
1434 |
else if (http.isHeader(PCX_HS_CHANNELID)) |
1436 |
else if (http.isHeader(PCX_HS_CHANNELID)) |
1435 |
info.id.fromStr(arg); |
1437 |
info.id.fromStr(arg); |
1436 |
else if (http.isHeader("ice-password")) |
1438 |
else if (http.isHeader("ice-password")) |
Lines 1501-1507
Link Here
|
1501 |
while (http.nextHeader()) |
1503 |
while (http.nextHeader()) |
1502 |
{ |
1504 |
{ |
1503 |
LOG_DEBUG("ICY %s",http.cmdLine); |
1505 |
LOG_DEBUG("ICY %s",http.cmdLine); |
1504 |
readICYHeader(http,info,loginPassword.cstr()); |
1506 |
readICYHeader(http,info,loginPassword.cstr(), String::MAX_LEN); |
1505 |
} |
1507 |
} |
1506 |
|
1508 |
|
1507 |
|
1509 |
|