The pathologic filter matches "href=" and "src=" urls, but does not match "action=" urls.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pillarsdotnet’s picture

Status: Active » Needs review
FileSize
2.13 KB

Patch relative to the 7.x-1.x branch adds support for form action urls.

pillarsdotnet’s picture

Status: Needs review » Needs work

Unfortunately, this turns out to be basically useless for my intended purpose (sigh) which was making Drupal forms work when sent through email.

Garrett Albright’s picture

Status: Needs work » Closed (won't fix)

After 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.

pillarsdotnet’s picture

Status: Closed (won't fix) » Closed (works as designed)

Well, 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.

  • Garrett Albright committed d88a9d6 on 7.x-3.x
    Support the action (#1095496) and longdesc (#1095102) attributes;...