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.
The pathologic filter matches "href=" and "src=" urls, but does not match "action=" urls.
Comment | File | Size | Author |
---|---|---|---|
#1 | pathologic-support_form_action_urls-1095496-1.patch | 2.13 KB | pillarsdotnet |
Comments
Comment #1
pillarsdotnet CreditAttribution: pillarsdotnet commentedPatch relative to the 7.x-1.x branch adds support for form action urls.
Comment #2
pillarsdotnet CreditAttribution: pillarsdotnet commentedUnfortunately, this turns out to be basically useless for my intended purpose (sigh) which was making Drupal forms work when sent through email.
Comment #3
Garrett Albright CreditAttribution: Garrett Albright commentedAfter a moment of thought, I'm not sure I want to implement this, because if you're implementing a form in HTML which passes through an input filter, you're doing something wrong.
Comment #4
pillarsdotnet CreditAttribution: pillarsdotnet commentedWell, in my case I'm using pathologic as an output filter. See htmalmail. But I'm still, as you say, "doing something wrong".
It turns out that every Drupal form system contains a form key tying it to the current session, so re-using the form elsewhere (like in an email) doesn't work.
It might be nice, some day, to send an email with a working form and submit button embedded in the message, but right now I don't actually have a use-case apart from the search box, and I'm not willing to re-invent the wheel on that account.
I will re-open this or another issue if and when I have a valid use-case and a working solution.