Fixed JS-redirect

This commit is contained in:
cora32 2014-11-16 16:31:34 +03:00
parent d5937bf0dd
commit 0c31a70090

View File

@ -2350,7 +2350,12 @@ void _getLinkFromJSLocation(char *dataBuff, char *str, char *tag, char *ip, int
if(ptrQuoteTemp != NULL)
{
sz = ptrQuoteTemp - ptrQuote1 + 1;
};
}
else
{
ptrQuoteTemp = _findFirst(ptrQuote1 + 1, "\"'");
sz = ptrQuoteTemp - ptrQuote1 + 1;
}
char *tempBuff = new char[sz + 1];
ZeroMemory(tempBuff, sizeof(tempBuff));
strncpy(tempBuff, ptrQuote1 + 1, sz);