8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 03:23:04 +01:00

Merge pull request #35 from aafemt/CORE-5237

Postfix for #24 that fixes CORE-5271
This commit is contained in:
Dmitry Yemanov 2016-06-11 20:53:06 +03:00 committed by GitHub
commit 739b993894
2 changed files with 12 additions and 0 deletions

View File

@ -136,6 +136,12 @@ void PathUtils::concatPath(Firebird::PathName& result,
const Firebird::PathName& first,
const Firebird::PathName& second)
{
if (first.length() == 0)
{
result = second;
return;
}
result = first;
// First path used to be from trusted sources like getRootDirectory, etc.

View File

@ -108,6 +108,12 @@ void PathUtils::concatPath(Firebird::PathName& result,
const Firebird::PathName& first,
const Firebird::PathName& second)
{
if (first.length() == 0)
{
result = second;
return;
}
result = first;
// First path used to be from trusted sources like getRootDirectory, etc.