Kaydet (Commit) 88de6a59 authored tarafından Herbert Dürr's avatar Herbert Dürr

#i125226# don't try to access known-bad DDE servers

üst e58576b7
......@@ -255,9 +255,14 @@ sal_Bool SvDDEObject::Connect( SvBaseLink * pSvLink )
}
#if defined(WNT)
// Server nicht da, starten und nochmal versuchen
if( !bInWinExec )
bool bForbidden = bInWinExec;
// TODO: also check the security level
static const char* aBadServers[] = { "cmd" };
for( int i = 0; i < sizeof(aBadServers)/sizeof(*aBadServers); ++i)
bForbidden |= (sServer.CompareIgnoreCaseToAscii( aBadServers[i]) == COMPARE_EQUAL);
// try to start the DDE server if it is not there
if( !bForbidden )
{
ByteString aCmdLine( sServer, RTL_TEXTENCODING_ASCII_US );
aCmdLine.Append( ".exe " );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment