Skip to content

Commit 1e401e7

Browse files
committed
Fix. Encoder. Dropping attributes contains emails fixed.
1 parent 40a3498 commit 1e401e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Cleantalk/Antispam/EmailEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ public function modifyContent($content)
261261
*/
262262
private static function dropAttributesContainEmail($content, $tags)
263263
{
264-
$attribute_content_chunk = '[\s]{0,}=[\s]{0,}[\"\']\b[_A-Za-z0-9-\.]+@[_A-Za-z0-9-\.]+\..*\b[\"\']';
264+
$attribute_content_chunk = '[\s]{0,}=[\s]{0,}[\"\']\b[_A-Za-z0-9-\.]+@[_A-Za-z0-9-\.]+\.*\b[\"\']';
265265
foreach ($tags as $tag => $attribute) {
266266
// Regular expression to match the attribute without the tag
267267
$regexp_chunk_without_tag = "/{$attribute}{$attribute_content_chunk}/";

0 commit comments

Comments
 (0)