Bug 465669

Summary: Untrimmed URL added to a contact get dropped
Product: [Applications] kontact Reporter: Christopher Yeleighton <giecrilj>
Component: contactsAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 5.17.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 5.22.3
Sentry Crash Report:

Description Christopher Yeleighton 2023-02-13 13:32:37 UTC
SUMMARY
When you add an untrimmed URL to a contact, it gets dropped.


STEPS TO REPRODUCE
1. Add a new Web site   https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports  to a contact (with a leading space)!
2. Tell the contact to save!

OBSERVED RESULT
The contact does not have a Web site.

EXPECTED RESULT
Let the contact have the Web site (without leading spaces)!

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: openSUSE Tumbleweed 20230210
(available in About System)
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
The leading space is invisible after you have pasted a long URL.
Comment 1 Laurent Montel 2023-02-13 19:04:00 UTC
Git commit aa6b4e741b5f35ddb1cc32c089d64e546aaf2c63 by Laurent Montel.
Committed on 13/02/2023 at 19:03.
Pushed by mlaurent into branch 'release/22.12'.

Fix bug 465669:  Untrimmed URL added to a contact get dropped
FIXED-IN: 5.22.3

M  +1    -1    src/contact-editor/editor/generalinfoeditor/web/webwidget.cpp

https://invent.kde.org/pim/akonadi-contacts/commit/aa6b4e741b5f35ddb1cc32c089d64e546aaf2c63