From c8fb5046909c04c0ff170b0afbd8f73d188ea112 Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Sun, 5 May 2024 14:00:06 +0300 Subject: [PATCH] Fix the whitespace issue in the message "Access Denied: Restricted File" Summary: Added whitespaces where missing in the restricted file message. Closes T15270 Test Plan: Access a forbidden file. Check whitespaces in the error message. Reviewers: O1 Blessed Committers, valerio.bozzolan, aklapper, waldyrious Reviewed By: O1 Blessed Committers, valerio.bozzolan, waldyrious Subscribers: aklapper, waldyrious, avivey, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno Tags: #ux Maniphest Tasks: T15270 Differential Revision: https://we.phorge.it/D25419 --- src/applications/policy/filter/PhabricatorPolicyFilter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/policy/filter/PhabricatorPolicyFilter.php b/src/applications/policy/filter/PhabricatorPolicyFilter.php index 3443d17156..e7e8c86ee7 100644 --- a/src/applications/policy/filter/PhabricatorPolicyFilter.php +++ b/src/applications/policy/filter/PhabricatorPolicyFilter.php @@ -699,7 +699,7 @@ final class PhabricatorPolicyFilter extends Phobject { $text_details = array_filter(array_merge($head, $exceptions)); $text_details = implode(' ', $text_details); - $html_details = array($head, $more, $exceptions); + $html_details = array($head, $more, phutil_implode_html(' ', $exceptions)); $access_denied = $this->renderAccessDenied($object);