From 2fc4b174c1f5b0ec29d7f3ec19129c5ab15011bb Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sat, 22 Apr 2017 11:07:38 +0200 Subject: [PATCH] Domain name regular expression into lib/framework.php --- lib/framework.php | 1 + plugins/OStatus/OStatusPlugin.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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}(?