Skip to content

Commit 5666e4b

Browse files
Prevent truncation of URLs containing HTML entities
Allows semi-colons in URLs, typically indicative of an HTML entity, such as `&` or `&`.
1 parent edcfb25 commit 5666e4b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/wp-includes/functions.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ function wp_extract_urls( $content ) {
824824
. '(?:'
825825
. '\([\w\d]+\)|'
826826
. '(?:'
827-
. "[^`!()\[\]{};:'\".,<>«»“”‘’\s]|"
827+
. "[^`!()\[\]{}:'\".,<>«»“”‘’\s]|"
828828
. '(?:[:]\d+)?/?'
829829
. ')+'
830830
. ')'

0 commit comments

Comments
 (0)