Skip to content

Commit

Permalink
Fix #10228: Email linking boundaries changed to whitespace, to preven…
Browse files Browse the repository at this point in the history
…t linking in the middle of a URL.
  • Loading branch information
amyreese committed Apr 8, 2009
1 parent b6b90f6 commit 8940888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/string_api.php
Expand Up @@ -428,7 +428,7 @@ function string_insert_hrefs( $p_string ) {
ini_set( 'magic_quotes_sybase', true );
}

$p_string = preg_replace( '/\b' . email_regex_simple() . '\b/i', '<a href="mailto:\0">\0</a>', $p_string );
$p_string = preg_replace( '/\s' . email_regex_simple() . '\s/i', '<a href="mailto:\0">\0</a>', $p_string );

return $p_string;
}
Expand Down

0 comments on commit 8940888

Please sign in to comment.