We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40a3498 commit 1e401e7Copy full SHA for 1e401e7
1 file changed
lib/Cleantalk/Antispam/EmailEncoder.php
@@ -261,7 +261,7 @@ public function modifyContent($content)
261
*/
262
private static function dropAttributesContainEmail($content, $tags)
263
{
264
- $attribute_content_chunk = '[\s]{0,}=[\s]{0,}[\"\']\b[_A-Za-z0-9-\.]+@[_A-Za-z0-9-\.]+\..*\b[\"\']';
+ $attribute_content_chunk = '[\s]{0,}=[\s]{0,}[\"\']\b[_A-Za-z0-9-\.]+@[_A-Za-z0-9-\.]+\.*\b[\"\']';
265
foreach ($tags as $tag => $attribute) {
266
// Regular expression to match the attribute without the tag
267
$regexp_chunk_without_tag = "/{$attribute}{$attribute_content_chunk}/";
0 commit comments