Replace '\' with '/' in the URL in HTTP_HttpSendRequestW.
authorMaxime Bellengé <maxime.bellenge@laposte.net>
Tue, 25 Jan 2005 16:43:17 +0000 (16:43 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 25 Jan 2005 16:43:17 +0000 (16:43 +0000)
dlls/wininet/http.c

index 0887beb6097130ca6b4f4acb0f2c99a280a42467..747390a52fd2d66f9351596f68eab6416baf393e 100644 (file)
@@ -1534,6 +1534,11 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders,
                 nLen--;
                 lpwhr->lpszPath[nLen]='\0';
             }
+            /* Replace '\' with '/' */
+            while (nLen>0) {
+                nLen--;
+                if (lpwhr->lpszPath[nLen] == '\\') lpwhr->lpszPath[nLen]='/';
+            }
         }
 
         if(CSTR_EQUAL != CompareStringW( LOCALE_SYSTEM_DEFAULT, NORM_IGNORECASE,