From 294ba85015b3fb592ec98699002004dcde673d50 Mon Sep 17 00:00:00 2001 From: buddh4 Date: Wed, 13 May 2020 14:18:35 +0200 Subject: [PATCH] Fix #4078: Richtext linkextension pattern fails on link extensions with containing `)` in link title --- protected/humhub/docs/CHANGELOG.md | 1 + .../modules/content/widgets/richtext/ProsemirrorRichText.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/protected/humhub/docs/CHANGELOG.md b/protected/humhub/docs/CHANGELOG.md index 1b29641f28..b40a2cd70b 100644 --- a/protected/humhub/docs/CHANGELOG.md +++ b/protected/humhub/docs/CHANGELOG.md @@ -8,6 +8,7 @@ HumHub Change Log - Fix #4038: Cannot use yii\helpers\Html as Html because the name is already in use in ProfileBannerImage - Fix #4050: Broken Cron-job documentation link used in cron info sidebar snippet - Fix #4036: Uploaded photos are not rotated correctly +- Fix #4078: Richtext linkextension pattern fails on link extensions with containing `)` in link title 1.5.1 (April 19, 2020) ---------------------- diff --git a/protected/humhub/modules/content/widgets/richtext/ProsemirrorRichText.php b/protected/humhub/modules/content/widgets/richtext/ProsemirrorRichText.php index b8516044ab..26d41e0f8b 100644 --- a/protected/humhub/modules/content/widgets/richtext/ProsemirrorRichText.php +++ b/protected/humhub/modules/content/widgets/richtext/ProsemirrorRichText.php @@ -291,7 +291,7 @@ class ProsemirrorRichText extends AbstractRichText */ protected static function getLinkExtensionPattern($extension = '[a-zA-Z]+') { - return '/(?