Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
dc5f1cbd
Commit
dc5f1cbd
authored
Nov 30, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Nov 30, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove call to StrCatW by passing in NULL for lpszExtraInformation in
the call to InternetCrackUrl, which concatenates the params onto the path. Some other minor cleanups.
parent
6e2804e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
15 deletions
+11
-15
http.c
dlls/wininet/http.c
+11
-15
No files found.
dlls/wininet/http.c
View file @
dc5f1cbd
...
...
@@ -49,6 +49,9 @@
#include "winreg.h"
#include "winerror.h"
#define NO_SHLWAPI_STREAM
#define NO_SHLWAPI_REG
#define NO_SHLWAPI_STRFCNS
#define NO_SHLWAPI_GDI
#include "shlwapi.h"
#include "internet.h"
...
...
@@ -1766,22 +1769,19 @@ static BOOL HTTP_HandleRedirect(LPWININETHTTPREQW lpwhr, LPCWSTR lpszUrl, LPCWST
if
(
lpszUrl
[
0
]
==
'/'
)
{
/* if it's an absolute path, keep the same session info */
strcpyW
(
path
,
lpszUrl
);
lstrcpynW
(
path
,
lpszUrl
,
2048
);
}
else
if
(
NULL
!=
hIC
->
lpszProxy
&&
hIC
->
lpszProxy
[
0
]
!=
0
)
{
TRACE
(
"Redirect through proxy
\n
"
);
strcpyW
(
path
,
lpszUrl
);
lstrcpynW
(
path
,
lpszUrl
,
2048
);
}
else
{
URL_COMPONENTSW
urlComponents
;
WCHAR
protocol
[
32
],
hostName
[
MAXHOSTNAME
],
userName
[
1024
];
WCHAR
password
[
1024
],
extra
[
1024
];
static
const
WCHAR
szHttp
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
0
};
static
const
WCHAR
szHttps
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
's'
,
0
};
extra
[
0
]
=
0
;
password
[
0
]
=
0
;
userName
[
0
]
=
0
;
hostName
[
0
]
=
0
;
protocol
[
0
]
=
0
;
...
...
@@ -1793,25 +1793,23 @@ static BOOL HTTP_HandleRedirect(LPWININETHTTPREQW lpwhr, LPCWSTR lpszUrl, LPCWST
urlComponents
.
dwHostNameLength
=
MAXHOSTNAME
;
urlComponents
.
lpszUserName
=
userName
;
urlComponents
.
dwUserNameLength
=
1024
;
urlComponents
.
lpszPassword
=
password
;
urlComponents
.
dwPasswordLength
=
1024
;
urlComponents
.
lpszPassword
=
NULL
;
urlComponents
.
dwPasswordLength
=
0
;
urlComponents
.
lpszUrlPath
=
path
;
urlComponents
.
dwUrlPathLength
=
2048
;
urlComponents
.
lpszExtraInfo
=
extra
;
urlComponents
.
dwExtraInfoLength
=
1024
;
urlComponents
.
lpszExtraInfo
=
NULL
;
urlComponents
.
dwExtraInfoLength
=
0
;
if
(
!
InternetCrackUrlW
(
lpszUrl
,
strlenW
(
lpszUrl
),
0
,
&
urlComponents
))
return
FALSE
;
if
(
urlComponents
.
lpszScheme
&&
!
strncmpW
(
szHttp
,
urlComponents
.
lpszScheme
,
strlenW
(
szHttp
))
&&
if
(
!
strncmpW
(
szHttp
,
urlComponents
.
lpszScheme
,
strlenW
(
szHttp
))
&&
(
lpwhr
->
hdr
.
dwFlags
&
INTERNET_FLAG_SECURE
))
{
TRACE
(
"redirect from secure page to non-secure page
\n
"
);
/* FIXME: warn about from secure redirect to non-secure page */
lpwhr
->
hdr
.
dwFlags
&=
~
INTERNET_FLAG_SECURE
;
}
if
(
urlComponents
.
lpszScheme
&&
!
strncmpW
(
szHttps
,
urlComponents
.
lpszScheme
,
strlenW
(
szHttps
))
&&
if
(
!
strncmpW
(
szHttps
,
urlComponents
.
lpszScheme
,
strlenW
(
szHttps
))
&&
!
(
lpwhr
->
hdr
.
dwFlags
&
INTERNET_FLAG_SECURE
))
{
TRACE
(
"redirect from non-secure page to secure page
\n
"
);
...
...
@@ -1879,8 +1877,6 @@ static BOOL HTTP_HandleRedirect(LPWININETHTTPREQW lpwhr, LPCWSTR lpszUrl, LPCWST
return
FALSE
;
}
StrCatW
(
path
,
extra
);
INTERNET_SendCallback
(
&
lpwhr
->
hdr
,
lpwhr
->
hdr
.
dwContext
,
INTERNET_STATUS_NAME_RESOLVED
,
&
(
lpwhs
->
socketAddress
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment