summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/logging/loggerconfig.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/extensions/source/logging/loggerconfig.cxx b/extensions/source/logging/loggerconfig.cxx
index 71f14c60ac9a..cdf6df55488e 100644
--- a/extensions/source/logging/loggerconfig.cxx
+++ b/extensions/source/logging/loggerconfig.cxx
@@ -145,13 +145,8 @@ namespace logging
{
OUString sPattern( aVariable.pVariablePattern, aVariable.nPatternLength, aVariable.eEncoding );
sal_Int32 nVariableIndex = _inout_rFileURL.indexOf( sPattern );
- if ( ( nVariableIndex == 0 )
- || ( ( nVariableIndex > 0 )
- && ( sPattern[ nVariableIndex - 1 ] != '$' )
- )
- )
+ if (nVariableIndex >= 0)
{
- // found an (unescaped) variable
_inout_rFileURL = _inout_rFileURL.replaceAt( nVariableIndex, sPattern.getLength(), aVariable.sVariableValue );
}
}