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
f2dfe86a
Commit
f2dfe86a
authored
Jan 29, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 30, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Recognize <head> start tag as text/html MIME type.
parent
e2264859
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
8 deletions
+22
-8
misc.c
dlls/urlmon/tests/misc.c
+9
-1
urlmon_main.c
dlls/urlmon/urlmon_main.c
+13
-7
No files found.
dlls/urlmon/tests/misc.c
View file @
f2dfe86a
...
...
@@ -563,6 +563,10 @@ static BYTE data83[] = {'.','s','n','d'};
static
BYTE
data84
[]
=
{
'.'
,
's'
,
'n'
,
'd'
,
0
,
'<'
,
'h'
,
't'
,
'm'
,
'l'
,
'>'
,
1
,
1
};
static
BYTE
data85
[]
=
{
'.'
,
'S'
,
'N'
,
'D'
,
0
};
static
BYTE
data86
[]
=
{
0x49
,
0x49
,
0x2a
,
0xff
};
static
BYTE
data87
[]
=
{
' '
,
'<'
,
'h'
,
'e'
,
'a'
,
'd'
};
static
BYTE
data88
[]
=
{
' '
,
'<'
,
'h'
,
'e'
,
'a'
,
'd'
,
'>'
};
static
BYTE
data89
[]
=
{
'\t'
,
'\r'
,
'<'
,
'h'
,
'e'
,
'a'
,
'd'
,
'>'
};
static
BYTE
data90
[]
=
{
'<'
,
'H'
,
'e'
,
'A'
,
'd'
,
'>'
};
static
const
struct
{
BYTE
*
data
;
...
...
@@ -654,7 +658,11 @@ static const struct {
{
data83
,
sizeof
(
data83
),
mimeTextPlain
},
{
data84
,
sizeof
(
data84
),
mimeTextHtml
,
mimeAudioBasic
/* IE8 */
},
{
data85
,
sizeof
(
data85
),
mimeTextPlain
},
{
data86
,
sizeof
(
data86
),
mimeImageTiff
,
NULL
,
mimeTextPlain
}
{
data86
,
sizeof
(
data86
),
mimeImageTiff
,
NULL
,
mimeTextPlain
},
{
data87
,
sizeof
(
data87
),
mimeTextPlain
},
{
data88
,
sizeof
(
data88
),
mimeTextHtml
,
mimeTextPlain
/* IE8 */
},
{
data89
,
sizeof
(
data89
),
mimeTextHtml
,
mimeTextPlain
/* IE8 */
},
{
data90
,
sizeof
(
data90
),
mimeTextHtml
,
mimeTextPlain
/* IE8 */
}
};
static
void
test_FindMimeFromData
(
void
)
...
...
dlls/urlmon/urlmon_main.c
View file @
f2dfe86a
...
...
@@ -566,13 +566,19 @@ static BOOL text_html_filter(const BYTE *b, DWORD size)
if
(
size
<
5
)
return
FALSE
;
for
(
i
=
0
;
i
<
size
-
5
;
i
++
)
{
if
(
b
[
i
]
==
'<'
&&
(
b
[
i
+
1
]
==
'h'
||
b
[
i
+
1
]
==
'H'
)
&&
(
b
[
i
+
2
]
==
't'
||
b
[
i
+
2
]
==
'T'
)
&&
(
b
[
i
+
3
]
==
'm'
||
b
[
i
+
3
]
==
'M'
)
&&
(
b
[
i
+
4
]
==
'l'
||
b
[
i
+
4
]
==
'L'
))
return
TRUE
;
for
(
i
=
0
;
i
<
size
-
5
;
i
++
)
{
if
((
b
[
i
]
==
'<'
&&
(
b
[
i
+
1
]
==
'h'
||
b
[
i
+
1
]
==
'H'
)
&&
(
b
[
i
+
2
]
==
't'
||
b
[
i
+
2
]
==
'T'
)
&&
(
b
[
i
+
3
]
==
'm'
||
b
[
i
+
3
]
==
'M'
)
&&
(
b
[
i
+
4
]
==
'l'
||
b
[
i
+
4
]
==
'L'
))
||
((
size
-
i
>=
6
)
&&
b
[
i
]
==
'<'
&&
(
b
[
i
+
1
]
==
'h'
||
b
[
i
+
1
]
==
'H'
)
&&
(
b
[
i
+
2
]
==
'e'
||
b
[
i
+
2
]
==
'E'
)
&&
(
b
[
i
+
3
]
==
'a'
||
b
[
i
+
3
]
==
'A'
)
&&
(
b
[
i
+
4
]
==
'd'
||
b
[
i
+
4
]
==
'D'
)
&&
b
[
i
+
5
]
==
'>'
))
return
TRUE
;
}
return
FALSE
;
...
...
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