When using entity_embed with contact_storage, there is a possibility to embed forms into wysiwyg fields.
Unfortunately pathologic tries to rewrite the form action which leads to a broken form, because in drupal 8 form actions are placeholders (lazy_builder) at the time the Filter plugin is applied, this leads to double slashes after placeholder handling. For example:
* Placeholder 'form_action_hash' is set for form action in FormBuilder->prepareForm()
* FilterPathologic add local domain to action 'http://localhost/form_action_hash'
* FormBuilder->renderPlaceholderFormAction() sets form action 'http://localhost//node/id'
Post to double slash url leads to redirect which looses form data.
I removed action from the regex for now, maybe there is a better way or even make the regex configurable.
P.S.: Regex replacing for form actions was added afaik because of https://www.drupal.org/node/1095496, see also https://www.drupal.org/node/578478 for even more attributes which 'should' be replaced.
Comment | File | Size | Author |
---|---|---|---|
#5 | pathologic-2781783-ignore-form-action-5.patch | 1.44 KB | osopolar |
| |||
#4 | pathologic-2781783-ignore-form-action-4.patch | 1.41 KB | volkerk |
| |||
#2 | pathologic-2781783-ignore-form-action.patch | 598 bytes | volkerk |
Comments
Comment #2
volkerk CreditAttribution: volkerk commentedComment #4
volkerk CreditAttribution: volkerk commentedRemoved form aciton from test.
Comment #5
osopolarReroll patch from #4.