Alexandre Julliard : wininet: Always use a full URL for redirects, even with an absolute path.

Alexandre Julliard julliard at winehq.org
Mon Jun 8 09:44:44 CDT 2009


Module: wine
Branch: master
Commit: 4b2a15de9fef0f396783ab2f1979538abc63f457
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4b2a15de9fef0f396783ab2f1979538abc63f457

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Jun  5 16:42:44 2009 +0200

wininet: Always use a full URL for redirects, even with an absolute path.

---

 dlls/wininet/http.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index 1bba8d9..0f59810 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -3255,8 +3255,6 @@ static LPWSTR HTTP_GetRedirectURL(LPWININETHTTPREQW lpwhr, LPCWSTR lpszUrl)
     LPWSTR orig_url;
     LPWSTR combined_url;
 
-    if (lpszUrl[0]=='/') return WININET_strdupW( lpszUrl );
-
     urlComponents.dwStructSize = sizeof(URL_COMPONENTSW);
     urlComponents.lpszScheme = (lpwhr->hdr.dwFlags & INTERNET_FLAG_SECURE) ? szHttps : szHttp;
     urlComponents.dwSchemeLength = 0;




More information about the wine-cvs mailing list