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
5401efae
Commit
5401efae
authored
Jul 23, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 23, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Unescape script from javascript: URLs before executing them.
parent
68fa7d3b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
navigate.c
dlls/mshtml/navigate.c
+6
-0
htmldoc.c
dlls/mshtml/tests/htmldoc.c
+1
-1
No files found.
dlls/mshtml/navigate.c
View file @
5401efae
...
...
@@ -1789,6 +1789,12 @@ static void navigate_javascript_proc(task_t *_task)
if
(
FAILED
(
hres
))
return
;
hres
=
UrlUnescapeW
(
code
,
NULL
,
NULL
,
URL_UNESCAPE_INPLACE
);
if
(
FAILED
(
hres
))
{
SysFreeString
(
code
);
return
;
}
set_download_state
(
window
->
doc_obj
,
1
);
V_VT
(
&
v
)
=
VT_EMPTY
;
...
...
dlls/mshtml/tests/htmldoc.c
View file @
5401efae
...
...
@@ -6874,7 +6874,7 @@ static void test_HTMLDocument_http(BOOL with_wbapp)
test_put_href
(
doc
,
FALSE
,
"#test"
,
"http://www.winehq.org/#test"
,
FALSE
,
TRUE
,
0
);
test_travellog
(
doc
);
}
test_put_href
(
doc
,
FALSE
,
NULL
,
"javascript:external&&undefined"
,
TRUE
,
FALSE
,
0
);
test_put_href
(
doc
,
FALSE
,
NULL
,
"javascript:external
%20
&&undefined"
,
TRUE
,
FALSE
,
0
);
test_put_href
(
doc
,
FALSE
,
NULL
,
"about:blank"
,
FALSE
,
FALSE
,
support_wbapp
?
DWL_EXPECT_HISTUPDATE
:
0
);
test_put_href
(
doc
,
TRUE
,
NULL
,
"about:replace"
,
FALSE
,
FALSE
,
0
);
...
...
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