It's possible that recipes may need to be attributed to Internet sources. In fact, it's a requirement in my current project which employs the Recipe module. I overrode the sanitation function in my project, but other people might want to have this ability too. I'd like to add <a> to the list of unfiltered tags for the source field in recipe_node_sanitize().

Current:

  if (!empty($node->recipe_source)) {
    $node->recipe_source = filter_xss($node->recipe_source, array());
  }

Proposed:

  if (!empty($node->recipe_source)) {
    $node->recipe_source = filter_xss($node->recipe_source, array('a'));
  }

Patch to follow.

CommentFileSizeAuthor
#1 1542806-source-field-links-1.patch538 bytesdcam
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dcam’s picture

The patch alters recipe_node_sanitize() in recipe.module.

dcam’s picture

Status: Active » Needs review
jvandervort’s picture

Status: Needs review » Fixed

Looks good, committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.