Fix issue with external basic logins

The alt text for the app icon passes null into htmlspecialchars, which is deprecated.
This commit is contained in:
Bye 2024-06-22 12:13:14 +01:00 committed by GitHub
parent 75ae8e91de
commit 5ddb85b244
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -111,7 +111,7 @@ login:
<div id="connection_img">
<img src="<?= get_avatar_url($_SESSION['id']) ?>" alt="<?= htmlspecialchars($user['display_name']) ?>'s avatar" />
<span class="sep">×</span>
<img src="<?= $app['icon'] ?>" alt="<?= htmlspecialchars($user['title']) ?>'s avatar" />
<img src="<?= $app['icon'] ?>" alt="<?= htmlspecialchars($app['title']) ?>" />
</div>
<h1>Sign into <?= htmlspecialchars($app['title']) ?></h1>
<p class="subtitle">Owned by <strong><?= htmlspecialchars( get_display_name($app['owner_id'], put_bcid_in_parenthesis: true) ) ?></strong></p>