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
ec064bbd
Commit
ec064bbd
authored
May 26, 2017
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
signing documents
parent
baf952a1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
DesktopEditor/xmlsec/src/src/OOXMLSigner.cpp
DesktopEditor/xmlsec/src/src/OOXMLSigner.cpp
+7
-0
No files found.
DesktopEditor/xmlsec/src/src/OOXMLSigner.cpp
View file @
ec064bbd
...
...
@@ -77,6 +77,11 @@ public:
std
::
wstring
GetImageBase64
(
const
std
::
wstring
&
file
)
{
if
(
0
==
file
.
find
(
L"data:image/"
))
{
return
file
.
substr
(
file
.
find
(
L","
)
+
1
);
}
BYTE
*
pData
=
NULL
;
DWORD
dwLen
=
0
;
if
(
!
NSFile
::
CFileBinary
::
ReadAllBytes
(
file
,
&
pData
,
dwLen
))
...
...
@@ -97,6 +102,8 @@ public:
std
::
wstring
GetRelsReference
(
const
std
::
wstring
&
file
)
{
COOXMLRelationships
oRels
(
m_sFolder
+
file
,
true
);
if
(
oRels
.
rels
.
size
()
==
0
)
return
L""
;
if
(
L"/_rels/.rels"
==
file
)
{
...
...
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