You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Changes the regex to permit Unicode characters in relevant parts of a detected URL. HTML5 supports IRIs, so it is perfectly valid to put UTF8 characters (without percent encoding them) into a web address in an HTML5 document. Whenever an IRI link is encountered, the browser will handle everything that needs to be handled. See http://www.w3.org/International/articles/idn-and-iri/ for more info.
- Removes some calls to filter_var() because FILTER_SANITIZE_URL and FILTER_VALIDATE_URL only support URIs, not IRIs. Since we no longer have the filters in place as a secondary check for invalid URLs, we'll have to rely on the regex alone. But that should be fine; it's no different than the situation prior to commit 8db70d2.
FixesSimpleMachines#1389
Signed-off-by: Jon Stovell <jonstovell@gmail.com>
Complex issue.
http://dev.simplemachines.org/mantis/view.php?id=360
http://dev.simplemachines.org/mantis/view.php?id=2449
http://dev.simplemachines.org/mantis/view.php?id=4359
http://www.simplemachines.org/community/index.php?topic=387983
Using the url bbcode is fine, it's merely the auto linking regex.
The text was updated successfully, but these errors were encountered: