Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #3138

  • Loading branch information...
commit d12b9bac14311b7438455962e8ee275d8fe12bf2 1 parent 237a09a
Geert De Deckere authored
Showing with 10 additions and 10 deletions.
  1. +5 −5 views/pagination/basic.php
  2. +5 −5 views/pagination/floating.php
View
10 views/pagination/basic.php
@@ -1,13 +1,13 @@
<p class="pagination">
<?php if ($first_page !== FALSE): ?>
- <a href="<?php echo $page->url($first_page) ?>" rel="first"><?php echo __('First') ?></a>
+ <a href="<?php echo HTML::chars($page->url($first_page)) ?>" rel="first"><?php echo __('First') ?></a>
<?php else: ?>
<?php echo __('First') ?>
<?php endif ?>
<?php if ($previous_page !== FALSE): ?>
- <a href="<?php echo $page->url($previous_page) ?>" rel="prev"><?php echo __('Previous') ?></a>
+ <a href="<?php echo HTML::chars($page->url($previous_page)) ?>" rel="prev"><?php echo __('Previous') ?></a>
<?php else: ?>
<?php echo __('Previous') ?>
<?php endif ?>
@@ -17,19 +17,19 @@
<?php if ($i == $current_page): ?>
<strong><?php echo $i ?></strong>
<?php else: ?>
- <a href="<?php echo $page->url($i) ?>"><?php echo $i ?></a>
+ <a href="<?php echo HTML::chars($page->url($i)) ?>"><?php echo $i ?></a>
<?php endif ?>
<?php endfor ?>
<?php if ($next_page !== FALSE): ?>
- <a href="<?php echo $page->url($next_page) ?>" rel="next"><?php echo __('Next') ?></a>
+ <a href="<?php echo HTML::chars($page->url($next_page)) ?>" rel="next"><?php echo __('Next') ?></a>
<?php else: ?>
<?php echo __('Next') ?>
<?php endif ?>
<?php if ($last_page !== FALSE): ?>
- <a href="<?php echo $page->url($last_page) ?>" rel="last"><?php echo __('Last') ?></a>
+ <a href="<?php echo HTML::chars($page->url($last_page)) ?>" rel="last"><?php echo __('Last') ?></a>
<?php else: ?>
<?php echo __('Last') ?>
<?php endif ?>
View
10 views/pagination/floating.php
@@ -58,13 +58,13 @@
<p class="pagination">
<?php if ($first_page !== FALSE): ?>
- <a href="<?php echo $page->url($first_page) ?>" rel="first"><?php echo __('First') ?></a>
+ <a href="<?php echo HTML::chars($page->url($first_page)) ?>" rel="first"><?php echo __('First') ?></a>
<?php else: ?>
<?php echo __('First') ?>
<?php endif ?>
<?php if ($previous_page !== FALSE): ?>
- <a href="<?php echo $page->url($previous_page) ?>" rel="prev"><?php echo __('Previous') ?></a>
+ <a href="<?php echo HTML::chars($page->url($previous_page)) ?>" rel="prev"><?php echo __('Previous') ?></a>
<?php else: ?>
<?php echo __('Previous') ?>
<?php endif ?>
@@ -74,19 +74,19 @@
<?php if ($number === $current_page): ?>
<strong><?php echo $content ?></strong>
<?php else: ?>
- <a href="<?php echo $page->url($number) ?>"><?php echo $content ?></a>
+ <a href="<?php echo HTML::chars($page->url($number)) ?>"><?php echo $content ?></a>
<?php endif ?>
<?php endforeach ?>
<?php if ($next_page !== FALSE): ?>
- <a href="<?php echo $page->url($next_page) ?>" rel="next"><?php echo __('Next') ?></a>
+ <a href="<?php echo HTML::chars($page->url($next_page)) ?>" rel="next"><?php echo __('Next') ?></a>
<?php else: ?>
<?php echo __('Next') ?>
<?php endif ?>
<?php if ($last_page !== FALSE): ?>
- <a href="<?php echo $page->url($last_page) ?>" rel="last"><?php echo __('Last') ?></a>
+ <a href="<?php echo HTML::chars($page->url($last_page)) ?>" rel="last"><?php echo __('Last') ?></a>
<?php else: ?>
<?php echo __('Last') ?>
<?php endif ?>
Please sign in to comment.
Something went wrong with that request. Please try again.