X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fframework.php;h=229de8b79323f6bf22e3211e42b01ac88c60693b;hb=349e842078c5d69901df6ec9205cf7edcb4c4636;hp=5017fc01eac785c42263cd526af5a4dbc03c9e21;hpb=c76992450510f2d6261bc7c4380151681b7d5c06;p=quix0rs-gnu-social.git diff --git a/lib/framework.php b/lib/framework.php index 5017fc01ea..229de8b793 100644 --- a/lib/framework.php +++ b/lib/framework.php @@ -62,9 +62,10 @@ define('NOTICE_INBOX_SOURCE_GATEWAY', -1); * Some of those characters can be troublesome when auto-linking plain text. Such as "http://some.com/)" * URL encoding should be used whenever a weird character is used, the following strings are not definitive. */ -define('URL_REGEX_VALID_PATH_CHARS', '\pN\pL\,\-\_\+\/\=\:\;\%\~\*'); +define('URL_REGEX_VALID_PATH_CHARS', '\pN\pL\,\!\.\:\-\_\+\/\=\;\%\~\*'); define('URL_REGEX_VALID_QSTRING_CHARS', URL_REGEX_VALID_PATH_CHARS . '\&'); define('URL_REGEX_VALID_FRAGMENT_CHARS', URL_REGEX_VALID_QSTRING_CHARS . '\?\#'); +define('URL_REGEX_EXCLUDED_END_CHARS', '\?\.\,\!\#\:\''); // don't include these if they are directly after a URL // append our extlib dir as the last-resort place to find libs