Skip to content

Commit

Permalink
JVN#00876083を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuring committed Oct 24, 2024
1 parent 6255313 commit 345ad70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
<?php echo $this->BcAdminForm->control('no', ['type' => 'hidden']) ?>
</span>
<span class="bca-post__url">
<a href="<?php echo $fullUrl ?>"
<a href="<?php echo h($fullUrl) ?>"
class="bca-text-url" target="_blank" data-toggle="tooltip" data-placement="top" title="<?php echo __d('baser_core', '公開URLを開きます') ?>">
<i class="bca-icon--globe"></i>
<?php echo $fullUrl ?>
<?php echo h($fullUrl) ?>
</a>
<?php echo $this->BcAdminForm->button('', [
'id' => 'BtnCopyUrl',
Expand Down
2 changes: 1 addition & 1 deletion plugins/bc-blog/src/Service/BlogPostsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ public function getUrl(Content $content, BlogPost $post, $full)
/** @var ContentsServiceInterface $contentsService */
$contentsService = $this->getService(ContentsServiceInterface::class);
$contentUrl = $contentsService->getUrl(rawurldecode($content->url), $full, !empty($site->use_subdomain), false);
$no = ($post->name)?: $post->no;
$no = ($post->name)? rawurlencode($post->name) : $post->no;
return $contentUrl . 'archives/' . $no;
}

Expand Down

0 comments on commit 345ad70

Please sign in to comment.