summaryrefslogtreecommitdiff
path: root/cui/source/dialogs/hlinettp.cxx
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-10-16 06:17:09 +0200
committerThomas Arnhold <thomas@arnhold.org>2013-10-16 06:17:09 +0200
commite7841b62456fcb5743f4ab60a4e967883260c7db (patch)
treeb0afc8a6482f0b6804ca6ea67a4c15d8ba58508d /cui/source/dialogs/hlinettp.cxx
parentaa2d011acdcf332693f2a32a8eb3b9d73c958be7 (diff)
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
Diffstat (limited to 'cui/source/dialogs/hlinettp.cxx')
-rw-r--r--cui/source/dialogs/hlinettp.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/cui/source/dialogs/hlinettp.cxx b/cui/source/dialogs/hlinettp.cxx
index 6809ed634313..47c6e0df1f60 100644
--- a/cui/source/dialogs/hlinettp.cxx
+++ b/cui/source/dialogs/hlinettp.cxx
@@ -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);