Skip to content

Commit d14f506

Browse files
author
baserproject
authored
Merge pull request from GHSA-fw5q-j9p4-3vxg
ブログコメントの名前表示を改善
2 parents ff7821e + 9dc5aeb commit d14f506

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/Baser/Config/theme/bc_sample/Elements/blog_comment.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
<div class="bs-blog-comment__list-item" id="Comment<?php echo $dbData['no'] ?>">
2626
<div class="bs-blog-comment__list-item-name">
2727
<?php if ($dbData['url']): ?>
28-
<?php $this->BcBaser->link($dbData['name'], $dbData['url'], ['target' => '_blank']) ?>
28+
<?php $this->BcBaser->link($dbData['name'], $dbData['url'], ['target' => '_blank', 'escape' => true]) ?>
2929
<?php else: ?>
30-
<?php echo $dbData['name'] ?>
30+
<?php echo h($dbData['name']) ?>
3131
<?php endif ?>
3232
</div>
3333
<div class="bs-blog-comment__list-item-message">

lib/Baser/Plugin/Blog/View/Elements/blog_comments_scripts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
'data-alertMessageComplate' => __('コメントの送信が完了しました。'),
1212
'data-alertMessageError' => __('コメントの送信に失敗しました。入力内容を見なおしてください。'),
1313
]); ?>
14-
<div id="BaseUrl" style="display: none"><?php echo $this->request->base; ?></div>
14+
<div id="BaseUrl" style="display: none"><?php echo h($this->request->base); ?></div>
1515

1616
<script>
1717
authCaptcha = <?php echo $blogContent['BlogContent']['auth_captcha'] ? 'true' : 'false'; ?>;

0 commit comments

Comments
 (0)