Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
df8a1ce6
Commit
df8a1ce6
authored
Jul 11, 2014
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 11, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Recognize <body> tag in FindMimeFromData function.
parent
f72975d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
mimefilter.c
dlls/urlmon/mimefilter.c
+6
-1
misc.c
dlls/urlmon/tests/misc.c
+4
-0
No files found.
dlls/urlmon/mimefilter.c
View file @
df8a1ce6
...
@@ -280,7 +280,12 @@ static BOOL text_html_filter(const BYTE *b, DWORD size)
...
@@ -280,7 +280,12 @@ static BOOL text_html_filter(const BYTE *b, DWORD size)
&&
(
b
[
1
]
==
'h'
||
b
[
1
]
==
'H'
)
&&
(
b
[
1
]
==
'h'
||
b
[
1
]
==
'H'
)
&&
(
b
[
2
]
==
'e'
||
b
[
2
]
==
'E'
)
&&
(
b
[
2
]
==
'e'
||
b
[
2
]
==
'E'
)
&&
(
b
[
3
]
==
'a'
||
b
[
3
]
==
'A'
)
&&
(
b
[
3
]
==
'a'
||
b
[
3
]
==
'A'
)
&&
(
b
[
4
]
==
'd'
||
b
[
4
]
==
'D'
)))
return
TRUE
;
&&
(
b
[
4
]
==
'd'
||
b
[
4
]
==
'D'
))
||
(
b
[
0
]
==
'<'
&&
(
b
[
1
]
==
'b'
||
b
[
1
]
==
'B'
)
&&
(
b
[
2
]
==
'o'
||
b
[
2
]
==
'O'
)
&&
(
b
[
3
]
==
'd'
||
b
[
3
]
==
'D'
)
&&
(
b
[
4
]
==
'y'
||
b
[
4
]
==
'Y'
)))
return
TRUE
;
return
FALSE
;
return
FALSE
;
}
}
...
...
dlls/urlmon/tests/misc.c
View file @
df8a1ce6
...
@@ -575,6 +575,8 @@ static BYTE data93[] = {'<','?','x','m','l',' ',' ','<','h','t','m','l','>'};
...
@@ -575,6 +575,8 @@ static BYTE data93[] = {'<','?','x','m','l',' ',' ','<','h','t','m','l','>'};
static
BYTE
data94
[]
=
{
'<'
,
'h'
,
't'
,
'm'
,
'l'
,
'>'
,
'<'
,
'?'
,
'x'
,
'm'
,
'l'
,
' '
,
' '
};
static
BYTE
data94
[]
=
{
'<'
,
'h'
,
't'
,
'm'
,
'l'
,
'>'
,
'<'
,
'?'
,
'x'
,
'm'
,
'l'
,
' '
,
' '
};
static
BYTE
data95
[]
=
{
'{'
,
'\\'
,
'r'
,
't'
,
'f'
,
'<'
,
'?'
,
'x'
,
'm'
,
'l'
,
' '
,
' '
};
static
BYTE
data95
[]
=
{
'{'
,
'\\'
,
'r'
,
't'
,
'f'
,
'<'
,
'?'
,
'x'
,
'm'
,
'l'
,
' '
,
' '
};
static
BYTE
data96
[]
=
{
'<'
,
'?'
,
'x'
,
'm'
,
'l'
,
' '
};
static
BYTE
data96
[]
=
{
'<'
,
'?'
,
'x'
,
'm'
,
'l'
,
' '
};
static
BYTE
data97
[]
=
"<body"
;
static
BYTE
data98
[]
=
"blah<BoDyblahblah"
;
static
const
struct
{
static
const
struct
{
BYTE
*
data
;
BYTE
*
data
;
...
@@ -681,6 +683,8 @@ static const struct {
...
@@ -681,6 +683,8 @@ static const struct {
{
data94
,
sizeof
(
data94
),
"text/html"
,
"text/plain"
},
{
data94
,
sizeof
(
data94
),
"text/html"
,
"text/plain"
},
{
data95
,
sizeof
(
data95
),
"text/xml"
,
"text/richtext"
},
{
data95
,
sizeof
(
data95
),
"text/xml"
,
"text/richtext"
},
{
data96
,
sizeof
(
data96
),
"text/plain"
},
{
data96
,
sizeof
(
data96
),
"text/plain"
},
{
data97
,
sizeof
(
data97
),
"text/html"
,
"text/plain"
},
{
data98
,
sizeof
(
data98
),
"text/html"
,
"text/plain"
},
{
data1
,
sizeof
(
data1
),
"text/plain"
,
NULL
,
NULL
,
"res://mshtml.dll/blank.htm"
},
{
data1
,
sizeof
(
data1
),
"text/plain"
,
NULL
,
NULL
,
"res://mshtml.dll/blank.htm"
},
{
NULL
,
0
,
"text/html"
,
NULL
,
NULL
,
"res://mshtml.dll/blank.htm"
},
{
NULL
,
0
,
"text/html"
,
NULL
,
NULL
,
"res://mshtml.dll/blank.htm"
},
{
data1
,
sizeof
(
data1
),
"text/plain"
,
NULL
,
NULL
,
"res://mshtml.dll/blank.htm"
,
"application/octet-stream"
},
{
data1
,
sizeof
(
data1
),
"text/plain"
,
NULL
,
NULL
,
"res://mshtml.dll/blank.htm"
,
"application/octet-stream"
},
...
...
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