From: Mikael Nordfeldth Date: Sat, 22 Apr 2017 09:07:38 +0000 (+0200) Subject: Domain name regular expression into lib/framework.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2fc4b174c1f5b0ec29d7f3ec19129c5ab15011bb;p=quix0rs-gnu-social.git Domain name regular expression into lib/framework.php --- diff --git a/lib/framework.php b/lib/framework.php index 77f2d0526a..56a382aa65 100644 --- a/lib/framework.php +++ b/lib/framework.php @@ -66,6 +66,7 @@ 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 +define('URL_REGEX_DOMAIN_NAME', '(?:(?!-)[A-Za-z0-9\-]{1,63}(?