UI: Do not escape apostrophe in custom server name (#6391)

Fixes #6352.
This commit is contained in:
d11n 2024-11-13 08:24:47 +01:00 committed by GitHub
parent 809e475e29
commit 088c0c7f85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View File

@ -1,5 +1,4 @@
@using BTCPayServer.Services
@using Microsoft.AspNetCore.Mvc.TagHelpers
@using BTCPayServer.Components.MainLogo
@using System.Text
@inject SettingsRepository SettingsRepository
@ -49,7 +48,7 @@
<vc:main-logo />
</a>
<h1 class="h2 mb-3" text-translate="true">@ViewLocalizer["Welcome to {0}", string.IsNullOrWhiteSpace(settings.ServerName) ? "BTCPay Server" : settings.ServerName]</h1>
<h1 class="h2 mb-3">@ViewLocalizer["Welcome to {0}", string.IsNullOrWhiteSpace(settings.ServerName) ? "BTCPay Server" : settings.ServerName]</h1>
@if (ViewBag.ShowLeadText)
{
<p class="lead">

View File

@ -1,5 +1,4 @@
@using BTCPayServer.Services
@using Microsoft.AspNetCore.Mvc.TagHelpers
@model HomeViewModel;
@inject SettingsRepository SettingsRepository
@{
@ -9,7 +8,7 @@
<partial name="_StatusMessage" />
<h2 text-translate="true">@ViewLocalizer["Welcome to {0}", string.IsNullOrWhiteSpace(settings.ServerName) ? "BTCPay Server" : settings.ServerName]</h2>
<h2>@ViewLocalizer["Welcome to {0}", string.IsNullOrWhiteSpace(settings.ServerName) ? "BTCPay Server" : settings.ServerName]</h2>
@if (!Model.HasStore)
{