X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Fbasic_auth%2Fsrc%2FAuthentication%2FProvider%2FBasicAuth.php;fp=web%2Fcore%2Fmodules%2Fbasic_auth%2Fsrc%2FAuthentication%2FProvider%2FBasicAuth.php;h=48732bc86dd44be48792cb776a92b37816bdd12a;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=01034f4a8c44d0406cf2900c8dd13868c70d5cda;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website diff --git a/web/core/modules/basic_auth/src/Authentication/Provider/BasicAuth.php b/web/core/modules/basic_auth/src/Authentication/Provider/BasicAuth.php index 01034f4a8..48732bc86 100644 --- a/web/core/modules/basic_auth/src/Authentication/Provider/BasicAuth.php +++ b/web/core/modules/basic_auth/src/Authentication/Provider/BasicAuth.php @@ -2,7 +2,7 @@ namespace Drupal\basic_auth\Authentication\Provider; -use Drupal\Component\Utility\SafeMarkup; +use Drupal\Component\Render\FormattableMarkup; use Drupal\Core\Authentication\AuthenticationProviderInterface; use Drupal\Core\Authentication\AuthenticationProviderChallengeInterface; use Drupal\Core\Cache\CacheableMetadata; @@ -129,7 +129,7 @@ class BasicAuth implements AuthenticationProviderInterface, AuthenticationProvid public function challengeException(Request $request, \Exception $previous) { $site_config = $this->configFactory->get('system.site'); $site_name = $site_config->get('name'); - $challenge = SafeMarkup::format('Basic realm="@realm"', [ + $challenge = new FormattableMarkup('Basic realm="@realm"', [ '@realm' => !empty($site_name) ? $site_name : 'Access restricted', ]);