From bfc958873987822f54b260fcafc2795f0e6a65be Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 23 Nov 2022 09:45:38 -0700 Subject: [PATCH] Fix URLS with ! in query were not properly activated, leaving out part of the URL --- api/src/Html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Html.php b/api/src/Html.php index 5f326c15d7..bb3d02fa54 100644 --- a/api/src/Html.php +++ b/api/src/Html.php @@ -63,7 +63,7 @@ class Html // First match things beginning with http:// (or other protocols) $Protocol = '(http:\/\/|(ftp:\/\/|https:\/\/))'; // only http:// gets removed, other protocolls are shown $Domain = '([\w-]+\.[\w\-.]+)'; - $Subdir = '([\w\-\.,@?^=%&;:\/~\+#]*[\w\-\@?^=%&\/~\+#])?'; + $Subdir = '([\w\-\.,@?^=%&!;:\/~\+#]*[\w\-\@?^=%&\/~\+#])?'; $optStuff = '("|"|;)?'; $Expr = '/' . $NotAnchor . $Protocol . $Domain . $Subdir . $optStuff . '/i'; // use preg_replace_callback as we experienced problems with https links