From: Mikael Nordfeldth Date: Fri, 17 Jun 2016 09:20:36 +0000 (+0200) Subject: Apparently medium.com uses @ frequently i URLs X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5e131aed802074164aa0c3d431dbd97440cf8b5a;p=quix0rs-gnu-social.git Apparently medium.com uses @ frequently i URLs and we skipped them because we assumed they were urlencoded when copied. --- diff --git a/lib/framework.php b/lib/framework.php index 229de8b793..d21bb994b8 100644 --- a/lib/framework.php +++ b/lib/framework.php @@ -62,7 +62,7 @@ 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