Skip to content
Snippets Groups Projects
Commit 25efbc9d authored by Uwe Bonnes's avatar Uwe Bonnes Committed by Alexandre Julliard
Browse files

HTTP_HttpSendRequestA: Remove \r and \n at the end of

lpwhr->lpszPath.
parent 9063cefe
No related branches found
Tags wine-970914
No related merge requests found
......@@ -1348,7 +1348,12 @@ BOOL WINAPI HTTP_HttpSendRequestA(HINTERNET hHttpRequest, LPCSTR lpszHeaders,
/* If we don't have a path we set it to root */
if (NULL == lpwhr->lpszPath)
lpwhr->lpszPath = WININET_strdup("/");
else /* remove \r and \n*/
{
int nLen = strlen(lpwhr->lpszPath);
while ((nLen > 0) && ((lpwhr->lpszPath[nLen-1] == '\r')||(lpwhr->lpszPath[nLen-1] == '\n')))
lpwhr->lpszPath[--nLen]='\0';
}
if(strncmp(lpwhr->lpszPath, "http://", sizeof("http://") -1) != 0
&& lpwhr->lpszPath[0] != '/') /* not an absolute path ?? --> fix it !! */
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment