You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-04-13 14:42:51 -07:00
Added patch to ignore AllowXsltScript and AllowDocumentFunction properties in msxml.
This commit is contained in:
@ -0,0 +1,37 @@
|
||||
From 5eac8a570514043d3a534b165aa6e2f846826e0e Mon Sep 17 00:00:00 2001
|
||||
From: Nikolay Sivov <nsivov@codeweavers.com>
|
||||
Date: Mon, 19 Dec 2016 00:06:04 +0300
|
||||
Subject: msxml3: Accept AllowXsltScript and AllowDocumentFunction properties
|
||||
|
||||
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
|
||||
---
|
||||
dlls/msxml3/domdoc.c | 6 +++++-
|
||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/dlls/msxml3/domdoc.c b/dlls/msxml3/domdoc.c
|
||||
index 36432190bb4..62b48fcb21a 100644
|
||||
--- a/dlls/msxml3/domdoc.c
|
||||
+++ b/dlls/msxml3/domdoc.c
|
||||
@@ -71,6 +71,8 @@ static const WCHAR PropertyNewParserW[] = {'N','e','w','P','a','r','s','e','r',0
|
||||
static const WCHAR PropValueXPathW[] = {'X','P','a','t','h',0};
|
||||
static const WCHAR PropValueXSLPatternW[] = {'X','S','L','P','a','t','t','e','r','n',0};
|
||||
static const WCHAR PropertyResolveExternalsW[] = {'R','e','s','o','l','v','e','E','x','t','e','r','n','a','l','s',0};
|
||||
+static const WCHAR PropertyAllowXsltScriptW[] = {'A','l','l','o','w','X','s','l','t','S','c','r','i','p','t',0};
|
||||
+static const WCHAR PropertyAllowDocumentFunctionW[] = {'A','l','l','o','w','D','o','c','u','m','e','n','t','F','u','n','c','t','i','o','n',0};
|
||||
|
||||
/* Anything that passes the test_get_ownerDocument()
|
||||
* tests can go here (data shared between all instances).
|
||||
@@ -3072,7 +3074,9 @@ static HRESULT WINAPI domdoc_setProperty(
|
||||
}
|
||||
else if (lstrcmpiW(p, PropertyProhibitDTDW) == 0 ||
|
||||
lstrcmpiW(p, PropertyNewParserW) == 0 ||
|
||||
- lstrcmpiW(p, PropertyResolveExternalsW) == 0)
|
||||
+ lstrcmpiW(p, PropertyResolveExternalsW) == 0 ||
|
||||
+ lstrcmpiW(p, PropertyAllowXsltScriptW) == 0 ||
|
||||
+ lstrcmpiW(p, PropertyAllowDocumentFunctionW) == 0)
|
||||
{
|
||||
/* Ignore */
|
||||
FIXME("Ignoring property %s, value %s\n", debugstr_w(p), debugstr_variant(&value));
|
||||
--
|
||||
2.11.0
|
||||
|
1
patches/msxml3-AllowXsltScript/definition
Normal file
1
patches/msxml3-AllowXsltScript/definition
Normal file
@ -0,0 +1 @@
|
||||
Fixes: [41747] Ignore AllowXsltScript and AllowDocumentFunction properties in msxml
|
Reference in New Issue
Block a user