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
ee484b31
Commit
ee484b31
authored
Feb 25, 2014
by
Erich E. Hoover
Committed by
Alexandre Julliard
Feb 27, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hhctrl.ocx: Permit HTML start/end tags within quoted attributes.
parent
5eb04025
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
1 deletion
+41
-1
stream.c
dlls/hhctrl.ocx/stream.c
+41
-1
No files found.
dlls/hhctrl.ocx/stream.c
View file @
ee484b31
...
...
@@ -110,12 +110,52 @@ BOOL next_content(stream_t *stream, strbuf_t *buf)
return
TRUE
;
}
static
BOOL
find_node_end
(
stream_t
*
stream
,
strbuf_t
*
buf
)
{
int
tag_count
=
0
,
b
=
buf
->
len
;
char
*
p
;
while
(
1
)
{
if
(
!
stream_chr
(
stream
,
buf
,
'>'
))
return
FALSE
;
if
(
buf
->
len
==
0
)
break
;
p
=
&
buf
->
buf
[
b
];
while
((
p
=
memchr
(
p
+
1
,
'"'
,
buf
->
len
-
(
p
-
buf
->
buf
)))
!=
NULL
)
tag_count
++
;
b
=
buf
->
len
;
if
(
tag_count
%
2
!=
0
)
{
if
(
!
stream_chr
(
stream
,
buf
,
'"'
))
return
FALSE
;
tag_count
++
;
}
else
break
;
}
return
TRUE
;
}
BOOL
next_node
(
stream_t
*
stream
,
strbuf_t
*
buf
)
{
strbuf_t
tmpbuf
;
/* search through the end of the current node */
strbuf_init
(
&
tmpbuf
);
if
(
!
find_node_end
(
stream
,
&
tmpbuf
))
{
strbuf_free
(
buf
);
return
FALSE
;
}
strbuf_free
(
&
tmpbuf
);
/* find the beginning of the next node */
if
(
!
stream_chr
(
stream
,
NULL
,
'<'
))
return
FALSE
;
if
(
!
stream_chr
(
stream
,
buf
,
'>'
))
/* read out the data of the next node */
if
(
!
find_node_end
(
stream
,
buf
))
return
FALSE
;
strbuf_append
(
buf
,
">"
,
2
);
...
...
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