Changed: Add extra url parameters only for trusted domain requests
--HG-- branch : develop
This commit is contained in:
parent
c21e133c6d
commit
23220c6b96
1 changed files with 3 additions and 0 deletions
|
@ -357,6 +357,9 @@ void CGroupHTMLAuth::addHTTPGetParams (string &url, bool trustedDomain)
|
||||||
|
|
||||||
void CGroupHTMLAuth::addHTTPPostParams (SFormFields &formfields, bool trustedDomain)
|
void CGroupHTMLAuth::addHTTPPostParams (SFormFields &formfields, bool trustedDomain)
|
||||||
{
|
{
|
||||||
|
// no extras parameters added to url if not in trusted domains list
|
||||||
|
if (!trustedDomain) return;
|
||||||
|
|
||||||
if(!UserEntity || !NetMngr.getLoginCookie().isValid()) return;
|
if(!UserEntity || !NetMngr.getLoginCookie().isValid()) return;
|
||||||
|
|
||||||
uint32 cid = NetMngr.getLoginCookie().getUserId() * 16 + PlayerSelectedSlot;
|
uint32 cid = NetMngr.getLoginCookie().getUserId() * 16 + PlayerSelectedSlot;
|
||||||
|
|
Loading…
Reference in a new issue