Problem/Motivation

Space in mailto: href links to invalid HTML

Steps to reproduce

Add href mailto like: Test Email Fail
Test Email Success

Proposed resolution

Fixing the $mailtopattern Regular expression

Issue fork spamspan-3198099

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

joshua1234511 created an issue. See original summary.

joshua1234511’s picture

The issue is fixed by adjusted the regular expression $mailtopattern by handling the \s*

joshua1234511’s picture

Status: Active » Needs review
vitalie’s picture

thanks @joshua1234511, this looks good. Could you add a test for this scenario in spamspan.test?

joshua1234511’s picture

anybody’s picture

Status: Needs review » Needs work
anybody’s picture

Status: Needs work » Closed (works as designed)

A space after the mailto: is invalid markup.