diff options
author | Duncan Foster <dfoster@openoffice.org> | 2003-02-13 17:07:21 +0000 |
---|---|---|
committer | Duncan Foster <dfoster@openoffice.org> | 2003-02-13 17:07:21 +0000 |
commit | aeb35ff7408f7f700ddbf44d5c2661d16162fed5 (patch) | |
tree | 8adcdf6b11e4bd769ab898592d869c51362a8a19 /scripting/source/storage/ScriptSecurityManager.cxx | |
parent | d3e6253adbbf44d2ae59f74e4102538776c6dab8 (diff) |
Fixed duplicate dialog bug
Diffstat (limited to 'scripting/source/storage/ScriptSecurityManager.cxx')
-rwxr-xr-x | scripting/source/storage/ScriptSecurityManager.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/scripting/source/storage/ScriptSecurityManager.cxx b/scripting/source/storage/ScriptSecurityManager.cxx index 340da06f1812..57c174dabeee 100755 --- a/scripting/source/storage/ScriptSecurityManager.cxx +++ b/scripting/source/storage/ScriptSecurityManager.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ScriptSecurityManager.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: dfoster $ $Date: 2003-02-13 17:29:38 $ + * last change: $Author: dfoster $ $Date: 2003-02-13 18:07:21 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -166,6 +166,7 @@ void ScriptSecurityManager::addScriptStorage( rtl::OUString url, rtl::OUString path = url.copy( 0, url.lastIndexOf( '/' ) ); OSL_TRACE( "no of elts in path list = %d", (int)m_secureURL.getLength() ); + bool match = false; for(int j=m_secureURL.getLength();j>0;j--) { #ifdef __WIN32__ @@ -174,6 +175,7 @@ void ScriptSecurityManager::addScriptStorage( rtl::OUString url, if( path.equals( m_secureURL[j-1] ) ) #endif { + match = true; if( m_warning == sal_True ) { OUString dummyStr; @@ -192,6 +194,10 @@ void ScriptSecurityManager::addScriptStorage( rtl::OUString url, break; } } + if ( match == true ) + { + break; + } if( m_confirmationRequired == sal_True ) { OSL_TRACE("no path match & confirmation dialog"); |