Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
2c835e76
Kaydet (Commit)
2c835e76
authored
Tem 09, 2014
tarafından
Herbert Dürr
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#i125226# some macro preferences are directly applicable to DDE servers
üst
88de6a59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
impldde.cxx
sfx2/source/appl/impldde.cxx
+9
-5
No files found.
sfx2/source/appl/impldde.cxx
Dosyayı görüntüle @
2c835e76
...
...
@@ -49,6 +49,8 @@
#include <svl/svdde.hxx>
#include <sot/formats.hxx>
#include <unotools/securityoptions.hxx>
#define DDELINK_COLD 0
#define DDELINK_HOT 1
...
...
@@ -255,13 +257,15 @@ sal_Bool SvDDEObject::Connect( SvBaseLink * pSvLink )
}
#if defined(WNT)
bool
bForbidden
=
bInWinExec
;
// TODO: also check the security level
static
const
char
*
aBadServers
[]
=
{
"cmd"
};
// check the suitability of starting the DDE server
const
SvtSecurityOptions
aSecOpts
;
bool
bForbidden
=
(
aSecOpts
.
GetMacroSecurityLevel
()
!=
eNEVER_EXECUTE
);
bForbidden
|=
(
bInWinExec
!=
sal_False
);
static
const
char
*
aBadServers
[]
=
{
"cmd"
,
"rundll32"
};
for
(
int
i
=
0
;
i
<
sizeof
(
aBadServers
)
/
sizeof
(
*
aBadServers
);
++
i
)
bForbidden
|=
(
sServer
.
CompareIgnoreCaseToAscii
(
aBadServers
[
i
])
==
COMPARE_EQUAL
);
bForbidden
|=
(
sServer
.
CompareIgnoreCaseToAscii
(
aBadServers
[
i
])
==
COMPARE_EQUAL
);
// try to start the DDE server if it is not there
// try to start the DDE server if it is not there
already
if
(
!
bForbidden
)
{
ByteString
aCmdLine
(
sServer
,
RTL_TEXTENCODING_ASCII_US
);
...
...
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