Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

EZP-31539: Link Validation error in Richtext Editor #1338

Merged
merged 2 commits into from
Apr 10, 2020

Conversation

konradoboza
Copy link
Member

@konradoboza konradoboza commented Apr 8, 2020

Question Answer
Tickets EZP-31539
Bug fix? yes
New feature? no
BC breaks? no
Tests pass? yes
Doc needed? no
License GPL-2.0

There are still unhandled cases when pasting links in RTE (mailto, skype, callto etc). Instead of adding more of restricted keywords (which could also be error-prone if the keyword is a present outside schema), I changed regexp to verify whether any schema was present before changing the actual URL. It should also work properly when someone uses some custom link schema, like myschema://.

Checklist:

  • Coding standards ($ composer fix-cs)
  • Ready for Code Review

@konradoboza
Copy link
Member Author

Added handling for links like mailto:foo@bar.com as there is no // in da24931.

@konradoboza konradoboza requested a review from GrabowskiM April 8, 2020 13:58
@konradoboza konradoboza removed their assignment Apr 9, 2020
@lserwatka lserwatka merged commit 1eeeca0 into 1.5 Apr 10, 2020
@konradoboza konradoboza deleted the EZP-31539-link_wrong_schema_on_paste branch April 10, 2020 08:09
# for free to join this conversation on GitHub. Already have an account? # to comment
Development

Successfully merging this pull request may close these issues.

5 participants