diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-05-14 19:07:34 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-05-14 19:14:34 +0200 |
commit | 03535b91605ae0cfdf3be5eb2dfdf5de5374bdb2 (patch) | |
tree | 20d1abc873bd805b28d94004f6d20874b5fc4721 /svtools/source/control/inettbc.cxx | |
parent | 09c20b2f623e2271a3ab9eb82c2419a8951320c1 (diff) |
Remove obsolete RestrictedPath env var support
Change-Id: Ia4ea7d60d7b69c863c1e891887060265e73e1cb6
Diffstat (limited to 'svtools/source/control/inettbc.cxx')
-rw-r--r-- | svtools/source/control/inettbc.cxx | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx index 2859c10b1c10..917639d1771c 100644 --- a/svtools/source/control/inettbc.cxx +++ b/svtools/source/control/inettbc.cxx @@ -79,13 +79,11 @@ class SvtURLBox_Impl public: std::vector<OUString> aURLs; std::vector<OUString> aCompletions; - const IUrlFilter* pUrlFilter; ::std::vector< WildCard > m_aFilters; static sal_Bool TildeParsing( String& aText, String& aBaseUrl ); inline SvtURLBox_Impl( ) - :pUrlFilter( NULL ) { FilterMatch::createWildCardFilterList(String(),m_aFilters); } @@ -242,14 +240,6 @@ IMPL_STATIC_LINK( SvtMatchContext_Impl, Select_Impl, void*, ) // note: if this doesn't work, we're not interested in: we're checking the // untouched sCompletion then - if ( pBox->pImp->pUrlFilter ) - { - if ( !pBox->pImp->pUrlFilter->isUrlAllowed( sURL ) ) - { // this URL is not allowed - bValidCompletionsFiltered = true; - continue; - } - } if ( !sURL.isEmpty() && ( sURL[sURL.getLength()-1] != '/' )) { String sUpperURL( sURL ); @@ -985,7 +975,7 @@ void SvtURLBox::UpdatePicklistForSmartProtocol_Impl() String aURL( aCurObj.GetMainURL( INetURLObject::DECODE_WITH_CHARSET ) ); - if ( aURL.Len() && ( !pImp->pUrlFilter || pImp->pUrlFilter->isUrlAllowed( aURL ) ) ) + if ( aURL.Len() ) { sal_Bool bFound = (aURL.GetChar(aURL.Len()-1) == '/' ); if ( !bFound ) @@ -1387,11 +1377,6 @@ sal_Bool SvtURLBox_Impl::TildeParsing( return sal_True; } -void SvtURLBox::SetUrlFilter( const IUrlFilter* _pFilter ) -{ - pImp->pUrlFilter = _pFilter; -} - void SvtURLBox::SetFilter(const String& _sFilter) { pImp->m_aFilters.clear(); |