Skip to content

Commit

Permalink
src: make sure the server URL contains a trailing slash
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Natterer committed Jul 22, 2011
1 parent 7edd5da commit b902f2b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/settings.cxx
Expand Up @@ -214,6 +214,11 @@ bool Settings::setRemoteServerName (const OUString& aValue)
{
OUString stripped = aValue.trim ();

if (stripped.lastIndexOfAsciiL ("/", 1) != stripped.getLength () - 1)
{
stripped += OUString (RTL_CONSTASCII_USTRINGPARAM ("/"));
}

return setStringValue (remoteServerKey, stripped);
}

Expand Down

0 comments on commit b902f2b

Please sign in to comment.