summaryrefslogtreecommitdiffstats
path: root/framework/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-09-27 09:52:59 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-09-27 09:52:59 +0200
commitbae1e2aa636f144fe01cb8d9721e54525fed8b2c (patch)
tree1f949b1d8e1e66f44474aff7a25d4b0d26676a2e /framework/source
parenttdf#101898: Only re-substitute whole segments with $(username) (diff)
downloadcore-bae1e2aa636f144fe01cb8d9721e54525fed8b2c.tar.gz
core-bae1e2aa636f144fe01cb8d9721e54525fed8b2c.zip
Add note
Change-Id: I68af0bcfd6700ee40f2d0879e57de9d66c62c983
Diffstat (limited to 'framework/source')
-rw-r--r--framework/source/services/substitutepathvars.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/framework/source/services/substitutepathvars.cxx b/framework/source/services/substitutepathvars.cxx
index de2b9caef801..dd1747aaf9f7 100644
--- a/framework/source/services/substitutepathvars.cxx
+++ b/framework/source/services/substitutepathvars.cxx
@@ -1102,6 +1102,13 @@ throw ( RuntimeException )
{
// Special path variables as they can occur in the middle of a path. Only match if they
// describe a whole directory and not only a substring of a directory!
+ // (Ideally, all substitutions should stick to syntactical
+ // boundaries within the given URL, like not covering only
+ // part of a URL path segment; however, at least when saving
+ // an Impress document, one URL that is passed in is of the
+ // form <file:///.../share/palette%3Bfile:///.../user/
+ // config/standard.sob>, re-substituted to
+ // <$(inst)/share/palette%3B$(user)/config/standard.sob>.)
const sal_Unicode* pStr = aURL.getStr();
if ( nPos > 0 )