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
00289dd1
Commit
00289dd1
authored
Mar 09, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Make sure that HTML headers are terminated by endline.
parent
3a118f86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
persist.c
dlls/mshtml/persist.c
+5
-1
No files found.
dlls/mshtml/persist.c
View file @
00289dd1
...
...
@@ -131,11 +131,15 @@ static nsIInputStream *get_post_data_stream(IBindCtx *bctx)
static
const
char
content_length
[]
=
"Content-Length: %u
\r\n\r\n
"
;
data
=
heap_alloc
(
headers_len
+
post_len
+
sizeof
(
content_length
)
+
8
);
data
=
heap_alloc
(
headers_len
+
post_len
+
sizeof
(
content_length
)
+
10
);
if
(
headers_len
)
{
WideCharToMultiByte
(
CP_ACP
,
0
,
headers
,
-
1
,
data
,
headers_len
,
NULL
,
NULL
);
len
=
fix_headers
(
data
,
post_len
);
if
(
len
>=
2
&&
(
data
[
len
-
1
]
!=
'\n'
||
data
[
len
-
2
]
!=
'\r'
))
{
data
[
len
++
]
=
'\r'
;
data
[
len
++
]
=
'\n'
;
}
}
if
(
post_len
)
{
...
...
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