Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Most of plugins are providing URL prefixes, like Facebook. In such cases the use should enter only the relative part. But it's likely that in a lot of cases the users are tempted to copy and paste the URL of their profile directly from the browser. This could lead to a Facebook link, such as: https://www.facebook./com/https://facebook.com/myprofile
.
Proposed resolution
Add a generic validation in \Drupal\social_media_links\PlatformBase::validateValue()
for such cases to detect such user input attempts.
Remaining tasks
None.
User interface changes
None.
API changes
None.
Data model changes
None.
Comment | File | Size | Author |
---|---|---|---|
#3 | 2898726-3.interdiff.txt | 859 bytes | claudiu.cristea |
#3 | 2898726-3.patch | 1.09 KB | claudiu.cristea |
#2 | 2898726-2.patch | 1.09 KB | claudiu.cristea |
Comments
Comment #2
claudiu.cristeaPatch.
Comment #3
claudiu.cristeaFix a tiny typo.
Comment #4
claudiu.cristeaComment #5
Omar Alahmed#3 Works perfectly for me. Thanks @claudiu.cristea
Comment #7
Neslee Canil PintoCommitted to dev