summaryrefslogtreecommitdiff
path: root/stoc/source/loader
diff options
context:
space:
mode:
authorDaniel Boelzle <dbo@openoffice.org>2000-11-15 16:53:13 +0000
committerDaniel Boelzle <dbo@openoffice.org>2000-11-15 16:53:13 +0000
commit3674ddbd0e973d1983685fc5a5d42179cfda4896 (patch)
tree8cfd9a7274c6fc6f8bd5fae2e330a29b4e463e2f /stoc/source/loader
parente057246579b24fcc8b1cdd135f4d83e971a56b8c (diff)
#80090# check for dir boundary
Diffstat (limited to 'stoc/source/loader')
-rw-r--r--stoc/source/loader/dllcomponentloader.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/stoc/source/loader/dllcomponentloader.cxx b/stoc/source/loader/dllcomponentloader.cxx
index 3435112f805b..92bf3056582e 100644
--- a/stoc/source/loader/dllcomponentloader.cxx
+++ b/stoc/source/loader/dllcomponentloader.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: dllcomponentloader.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: dbo $ $Date: 2000-11-08 09:37:10 $
+ * last change: $Author: dbo $ $Date: 2000-11-15 17:53:13 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -322,7 +322,9 @@ static oslModule loadModule( const OUString & rLibName, sal_Int32 nMode )
#endif
}
- if (0 == aAbs.indexOf( aBaseDir )) // still part of it?
+ if (0 == aAbs.indexOf( aBaseDir ) && // still part of it?
+ aBaseDir.getLength() < aAbs.getLength() &&
+ aAbs[ aBaseDir.getLength() -1 ] == '/') // dir boundary
{
// load from absolute path
oslModule lib = ::osl_loadModule( aAbs.pData, nMode );