No validation if using "makeEmailSpamSave"

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
User avatar
swisscheese
Posts: 138
Joined: Mon 19. Feb 2007, 16:37
Location: Solothurn, Schweiz

No validation if using "makeEmailSpamSave"

Post by swisscheese »

Hi all

I'm using the frontend render script "makeEmailSpamSave.php" and just realised, that the page not validates anymore. In the code, there are two quotation marks (") at the end of the title tag:

Code: Select all

<a href="#" onclick="mailtoLink('nobody','domain.ch');return false;" title="Email: nobody at domain.ch"">....
I tried the following solution, that seems to work:
In "makeEmailSpamSave.php" replace the line 25
old code:
$src = "/href=[\"' ]*mailto:".$regex."[\"']*([^>]+>)/i";
new code:

Code: Select all

	$src = "/href=[\"' ]*mailto:".$regex."[\"']*([^>]*>)/i";
(notice the asteriks instead of the plus near the end of the line)
Have fun
swisscheese
Post Reply