Changeset 10733 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-custom-warnings/wporg-gp-custom-warnings.php
- Timestamp:
- 03/01/2021 06:20:29 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-custom-warnings/wporg-gp-custom-warnings.php
r10732 r10733 38 38 // Any http/https/schemeless URLs which are not encased in quotation marks 39 39 // nor contain whitespace and end with a valid URL ending char. 40 $urls_regex = '@(?<![\'"])((https?://|(?<![:\w])//)[^\s ]+[a-z0-9\-_&=#/])(?![\'"])@i';40 $urls_regex = '@(?<![\'"])((https?://|(?<![:\w])//)[^\s<]+[a-z0-9\-_&=#/])(?![\'"])@i'; 41 41 42 42 preg_match_all( $urls_regex, $original, $original_urls );
Note: See TracChangeset
for help on using the changeset viewer.