Skip to content

Commit

Permalink
ウィジェットエリアをサニタイズ
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuring committed Oct 5, 2023
1 parent 68c90e6 commit 709ad7a
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion plugins/bc-front/templates/element/widget/local_navi.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
?>


<div class="bs-widget bs-widget-local-navi bs-widget-local-navi-<?php echo $id ?>">
<div class="bs-widget bs-widget-local-navi bs-widget-local-navi-<?php echo h($id) ?>">
<?php if ($use_title): ?>
<h2 class="bs-widget-head"><?php echo h($title) ?></h2>
<?php endif ?>
Expand Down
2 changes: 1 addition & 1 deletion plugins/bc-front/templates/element/widget/php_template.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
?>


<div class="bs-widget bs-widget-php-template bs-widget-php-template-<?php echo $id ?>">
<div class="bs-widget bs-widget-php-template bs-widget-php-template-<?php echo h($id) ?>">
<?php if ($name && $use_title): ?>
<h2 class="bs-widget-list"><?php echo $name ?></h2>
<?php endif ?>
Expand Down
2 changes: 1 addition & 1 deletion plugins/bc-front/templates/element/widget/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
?>


<div class="bs-widget bs-widget-search-box bs-widget-search-box-<?php echo $id ?>">
<div class="bs-widget bs-widget-search-box bs-widget-search-box-<?php echo h($id) ?>">
<h2 class="bs-widget-head"><?php echo $name ?></h2>
<div class="bs-widget-form">
<?php echo $this->BcForm->create($searchIndexesFront, ['type' => 'get', 'url' => $url]) ?>
Expand Down
2 changes: 1 addition & 1 deletion plugins/bc-front/templates/element/widget/text.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
?>


<div class="bs-widget bs-widget-text bs-widget-text-<?php echo $id ?>">
<div class="bs-widget bs-widget-text bs-widget-text-<?php echo h($id) ?>">
<?php if ($name && $use_title): ?>
<h2 class="bs-widget-head"><?php echo $name ?></h2>
<?php endif ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
?>


<div class="bs-widget bs-widget-blog-authors bs-widget-blog-authors-<?php echo $id ?> bs-blog-widget">
<div class="bs-widget bs-widget-blog-authors bs-widget-blog-authors-<?php echo h($id) ?> bs-blog-widget">
<?php if ($name && $use_title): ?>
<h2 class="bs-widget-head"><?php echo $name ?></h2>
<?php endif ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
?>
<?php // TODO コード整理する事 ?>

<div class="bs-widget bs-widget-blog-calendar bs-widget-blog-calendar-<?php echo $id ?> bs-blog-widget">
<div class="bs-widget bs-widget-blog-calendar bs-widget-blog-calendar-<?php echo h($id) ?> bs-blog-widget">
<?php if ($name && $use_title): ?>
<h2 class="bs-widget-head"><?php echo $name ?></h2>
<?php endif ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
?>


<div class="bs-widget bs-widget-blog-categories-archives bs-widget-blog-categories-archives-<?php echo $id ?> bs-blog-widget">
<div class="bs-widget bs-widget-blog-categories-archives bs-widget-blog-categories-archives-<?php echo h($id) ?> bs-blog-widget">
<?php if ($name && $use_title): ?>
<h2 class="bs-widget-head"><?php echo $name ?></h2>
<?php endif ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
?>


<div class="bs-widget bs-widget-blog-monthly-archives bs-widget-blog-monthly-archives-<?php echo $id ?> bs-blog-widget">
<div class="bs-widget bs-widget-blog-monthly-archives bs-widget-blog-monthly-archives-<?php echo h($id) ?> bs-blog-widget">
<?php if ($name && $use_title): ?>
<h2 class="bs-widget-head"><?php echo $name ?></h2>
<?php endif ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
?>


<div class="bs-widget bs-widget-blog-recent-entries bs-widget-blog-recent-entries-<?php echo $id ?> bs-blog-widget">
<div class="bs-widget bs-widget-blog-recent-entries bs-widget-blog-recent-entries-<?php echo h($id) ?> bs-blog-widget">
<?php if ($name && $use_title): ?>
<h2 class="bs-widget-head"><?php echo $name ?></h2>
<?php endif ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
?>


<div class="widget widget-blog-authors widget-blog-authors-<?php echo $id ?> blog-widget">
<div class="widget widget-blog-authors widget-blog-authors-<?php echo h($id) ?> blog-widget">
<?php if ($name && $use_title): ?>
<h2><?php echo $name ?></h2>
<?php endif ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
?>


<div class="bs-widget bs-widget-blog-yearly-archives bs-widget-blog-yearly-archives-<?php echo $id ?> bs-blog-widget">
<div class="bs-widget bs-widget-blog-yearly-archives bs-widget-blog-yearly-archives-<?php echo h($id) ?> bs-blog-widget">
<?php if ($name && $use_title): ?>
<h2 class="bs-widget-head"><?php echo $name ?></h2>
<?php endif ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
?>


<div class="bs-widget-area bs-widget-area-<?php echo $no ?>">
<div class="bs-widget-area bs-widget-area-<?php echo h($no) ?>">
<?php $this->BcWidgetArea->show($no) ?>
</div>

0 comments on commit 709ad7a

Please sign in to comment.