Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
onlyoffice_core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
onlyoffice_core
Commits
6f2fdcd9
Commit
6f2fdcd9
authored
May 12, 2017
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
verify ooxml file. developing...
parent
9b4b7a26
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
DesktopEditor/xmlsec/src/OOXMLVerifier.h
DesktopEditor/xmlsec/src/OOXMLVerifier.h
+20
-1
No files found.
DesktopEditor/xmlsec/src/OOXMLVerifier.h
View file @
6f2fdcd9
...
@@ -89,7 +89,8 @@ private:
...
@@ -89,7 +89,8 @@ private:
for
(
int
i
=
0
;
i
<
nCount
;
i
++
)
for
(
int
i
=
0
;
i
<
nCount
;
i
++
)
{
{
CXmlStackNamespaces
_retRecursion
=
GetByIdRec
(
ret
,
id
);
oNodes
.
GetAt
(
i
,
ret
.
m_node
);
CXmlStackNamespaces
_retRecursion
=
ret
.
GetByIdRec
(
ret
,
id
);
if
(
_retRecursion
.
m_node
.
IsValid
())
if
(
_retRecursion
.
m_node
.
IsValid
())
return
_retRecursion
;
return
_retRecursion
;
}
}
...
@@ -165,7 +166,25 @@ public:
...
@@ -165,7 +166,25 @@ public:
return
;
return
;
}
}
// 2) Objects
XmlUtils
::
CXmlNodes
nodesReferences
;
m_node
.
ReadNode
(
L"SignedInfo"
).
GetNodes
(
L"Reference"
,
nodesReferences
);
CXmlStackNamespaces
stack
(
m_node
);
int
nCount
=
nodesReferences
.
GetCount
();
for
(
int
i
=
0
;
i
<
nCount
;
i
++
)
{
XmlUtils
::
CXmlNode
nodeRef
;
nodesReferences
.
GetAt
(
i
,
nodeRef
);
std
::
string
sId
=
nodeRef
.
GetAttributeA
(
"URI"
);
if
(
0
==
sId
.
find
(
"#"
))
sId
=
sId
.
substr
(
1
);
CXmlStackNamespaces
_stack
=
stack
.
GetById
(
sId
);
std
::
string
sTmp
=
_stack
.
GetXml
();
XML_UNUSED
(
sTmp
);
}
}
}
friend
class
COOXMLVerifier
;
friend
class
COOXMLVerifier
;
...
...
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