Skip to content

Commit

Permalink
src: trim() whitespace away from the server URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Natterer committed Jul 22, 2011
1 parent a3e10a3 commit 7edd5da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/settings.cxx
Expand Up @@ -212,7 +212,9 @@ bool Settings::setStringValue (const OUString& aKeyName, const OUString& aValue)

bool Settings::setRemoteServerName (const OUString& aValue)
{
return setStringValue (remoteServerKey, aValue);
OUString stripped = aValue.trim ();

return setStringValue (remoteServerKey, stripped);
}

OUString Settings::localizedString (OUString key)
Expand Down

0 comments on commit 7edd5da

Please sign in to comment.