From 1a056603619e33354560c5a84deb8389188dffa4 Mon Sep 17 00:00:00 2001 From: buddh4 Date: Wed, 11 Mar 2020 16:32:40 +0100 Subject: [PATCH] Fix #3911: Error thrown in UrlRule for non existing user names --- protected/humhub/docs/CHANGELOG.md | 1 + protected/humhub/modules/user/components/UrlRule.php | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/protected/humhub/docs/CHANGELOG.md b/protected/humhub/docs/CHANGELOG.md index 51d27a02c1..cd4babe321 100644 --- a/protected/humhub/docs/CHANGELOG.md +++ b/protected/humhub/docs/CHANGELOG.md @@ -5,6 +5,7 @@ HumHub Change Log --------------------- - Fix #3908: `DateHelper::parseDateTime()` returns invalid date if given value is not parsable - Fix #3905: `accountTopMenu` renders redundant `
  • ` tag +- Fix #3911: Error thrown in UrlRule for non existing user names 1.4.3 (March 4, 2020) --------------------- diff --git a/protected/humhub/modules/user/components/UrlRule.php b/protected/humhub/modules/user/components/UrlRule.php index 8e563d546f..9499ce46a4 100644 --- a/protected/humhub/modules/user/components/UrlRule.php +++ b/protected/humhub/modules/user/components/UrlRule.php @@ -77,12 +77,10 @@ class UrlRule extends BaseObject implements UrlRuleInterface } $params = $request->get(); $params['cguid'] = $user->guid; - } else { - // Allow controller to handle 404 - $params['cguid'] = 'not found'; + return [$parts[2] , $params]; } - return [$parts[2], $params]; + return false; } /**