Skip to content

Commit

Permalink
Escape installation title when displaying
Browse files Browse the repository at this point in the history
(cherry picked from commit ca84d69)
  • Loading branch information
zerocrates committed Aug 3, 2023
1 parent 32b0914 commit 8b72619
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion application/view/layout/layout-admin.phtml
Expand Up @@ -37,7 +37,7 @@ $this->trigger('view.layout');
<a href="#content" class="skip"><?php echo $translate('Skip to main content'); ?></a>
<div class="flex">
<header>
<div class="logo"><a href="<?php echo $this->url('admin'); ?>"><?php echo $this->setting('installation_title', 'Omeka S'); ?></a></div>
<div class="logo"><a href="<?php echo $this->url('admin'); ?>"><?php echo $escape($this->setting('installation_title', 'Omeka S')); ?></a></div>
<div id="mobile-nav">
<a href="#" class="o-icon-menu button"><span class="screen-reader-text"><?php echo $translate('Navigation menu'); ?></span></a>
<a href="#" class="o-icon-search button"><span class="screen-reader-text"><?php echo $translate('Search site'); ?></span></a>
Expand Down
2 changes: 1 addition & 1 deletion application/view/omeka/admin/index/browse.phtml
Expand Up @@ -6,7 +6,7 @@ echo $this->pageTitle($translate('Admin dashboard'));

<div id="dashboard">
<?php echo $this->partial('common/version-notification'); ?>
<p><?php echo sprintf($translate('Welcome to the %s admin dashboard!'), $title); ?></p>
<p><?php echo sprintf($translate('Welcome to the %s admin dashboard!'), $this->escapeHtml($title)); ?></p>
<?php $this->trigger('view.browse.before'); ?>
<div id="manage-resources" class="panel">
<h2><?php echo $translate('Manage resources'); ?></h2>
Expand Down
2 changes: 1 addition & 1 deletion application/view/omeka/index/index.phtml
Expand Up @@ -31,5 +31,5 @@ endforeach;
<p><?php echo sprintf(
$translate('Go to the %1$s to start working with %2$s.'),
$this->hyperlink($translate('Admin dashboard'), $this->url('admin')),
$title
$this->escapeHtml($title)
); ?></p>

0 comments on commit 8b72619

Please sign in to comment.