Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 273856
Collapse All | Expand All

(-)mutella-0.4.5.old/mutella/uiremote.cpp (-3 / +3 lines)
Lines 575-585 Link Here
575
	{
575
	{
576
		// login -- HTTP-Basic so far
576
		// login -- HTTP-Basic so far
577
		bool bLoginOK = false;
577
		bool bLoginOK = false;
578
		char * pszAuth = NULL;
578
		const char * pszAuth = NULL;
579
		if ( (pszAuth = strstr(szHandshake, "Authorization:")) )
579
		if ( (pszAuth = strstr(szHandshake, "Authorization:")) )
580
		{
580
		{
581
			// extract authorization line
581
			// extract authorization line
582
			char * pRN = strstr(pszAuth, "\r\n");
582
			const char * pRN = strstr(pszAuth, "\r\n");
583
			CString sAuthLine(pszAuth + strlen("Authorization:"), pRN-pszAuth-strlen("Authorization:"));
583
			CString sAuthLine(pszAuth + strlen("Authorization:"), pRN-pszAuth-strlen("Authorization:"));
584
			int nPos = sAuthLine.find("Basic");
584
			int nPos = sAuthLine.find("Basic");
585
			if (nPos>=0)
585
			if (nPos>=0)
Lines 616-622 Link Here
616
	const char* pszCookie;
616
	const char* pszCookie;
617
	if( (pszCookie = strstr(szHandshake, "Cookie:")) )
617
	if( (pszCookie = strstr(szHandshake, "Cookie:")) )
618
	{
618
	{
619
		char * pRN = strstr(pszCookie, "\r\n");
619
		const char * pRN = strstr(pszCookie, "\r\n");
620
		CString sCookieLine(pszCookie + strlen("Cookie:"), pRN-pszCookie-strlen("Cookie:"));
620
		CString sCookieLine(pszCookie + strlen("Cookie:"), pRN-pszCookie-strlen("Cookie:"));
621
		// we will split the line by "; " combination
621
		// we will split the line by "; " combination
622
		list<CString> Cookies;
622
		list<CString> Cookies;

Return to bug 273856