Kaydet (Commit) e7841b62 authored tarafından Thomas Arnhold's avatar Thomas Arnhold

fdo#45777: handling of whitespaces in hyperlinks

Remove leading and trailing whitespaces in the hyperlink dialog, because
the resulting links would be unusable.

Change-Id: Icf617daf51508a37494536e02fb298fb3cf746c5
üst aa2d011a
......@@ -181,7 +181,8 @@ void SvxHyperlinkInternetTp::GetCurentItemData ( OUString& rStrURL, OUString& aS
OUString SvxHyperlinkInternetTp::CreateAbsoluteURL() const
{
OUString aStrURL(maCbbTarget.GetText());
// erase leading and trailing whitespaces
OUString aStrURL( maCbbTarget.GetText().trim() );
INetURLObject aURL(aStrURL);
......
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