Kaydet (Commit) c4e74d50 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

LOK: Corner case with working dir as '/'.

Change-Id: I3965966f0d3fe65389e8834d67452ac56f9df2d6
üst f9663211
...@@ -172,9 +172,11 @@ static OUString getAbsoluteURL(const char* pURL) ...@@ -172,9 +172,11 @@ static OUString getAbsoluteURL(const char* pURL)
// convert relative paths to absolute ones // convert relative paths to absolute ones
OUString aWorkingDir; OUString aWorkingDir;
osl_getProcessWorkingDir(&aWorkingDir.pData); osl_getProcessWorkingDir(&aWorkingDir.pData);
if (!aWorkingDir.endsWith("/"))
aWorkingDir += "/";
try { try {
return rtl::Uri::convertRelToAbs(aWorkingDir + "/", aURL); return rtl::Uri::convertRelToAbs(aWorkingDir, aURL);
} }
catch (const rtl::MalformedUriException &) catch (const rtl::MalformedUriException &)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment