htmlentities -> htmlspecialchars
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<div class="ui search" style="width: 280px; height: 28px; margin-top: -5.3px;float:left ">
|
||||
<div class="ui left icon input" style="width: 100%; ">
|
||||
<input class="prompt" style="width: 100%; " type="text" placeholder=" <?php echo $MSG_TITLE;?> …" name="search"
|
||||
value="<?php if(isset($_GET['search']))echo htmlentities($_GET['search'],ENT_QUOTES,'UTF-8') ?>"
|
||||
value="<?php if(isset($_GET['search']))echo htmlspecialchars($_GET['search'],ENT_QUOTES,'UTF-8') ?>"
|
||||
>
|
||||
|
||||
<i class="search icon"></i>
|
||||
@@ -83,15 +83,15 @@
|
||||
?>
|
||||
<div style="text-align: center; ">
|
||||
<div class="ui pagination menu" style="box-shadow: none; ">
|
||||
<a class="<?php if($page==1) echo "disabled "; ?>icon item" href="<?php if($page<>1) echo "problemset.php?page=".($page-1).htmlentities($postfix,ENT_QUOTES,'UTF-8'); ?>" id="page_prev">
|
||||
<a class="<?php if($page==1) echo "disabled "; ?>icon item" href="<?php if($page<>1) echo "problemset.php?page=".($page-1).htmlspecialchars($postfix,ENT_QUOTES,'UTF-8'); ?>" id="page_prev">
|
||||
<i class="left chevron icon"></i>
|
||||
</a>
|
||||
<?php
|
||||
for ($i=$start;$i<=$end;$i++){
|
||||
echo "<a class=\"".($page==$i?"active ":"")."item\" href=\"problemset.php?page=".$i.htmlentities($postfix,ENT_QUOTES,'UTF-8')."\">".$i."</a>";
|
||||
echo "<a class=\"".($page==$i?"active ":"")."item\" href=\"problemset.php?page=".$i.htmlspecialchars($postfix,ENT_QUOTES,'UTF-8')."\">".$i."</a>";
|
||||
}
|
||||
?>
|
||||
<a class="<?php if($page==$view_total_page) echo "disabled "; ?> icon item" href="<?php if($page<>$view_total_page) echo "problemset.php?page=".($page+1).htmlentities($postfix,ENT_QUOTES,'UTF-8'); ?>" id="page_next">
|
||||
<a class="<?php if($page==$view_total_page) echo "disabled "; ?> icon item" href="<?php if($page<>$view_total_page) echo "problemset.php?page=".($page+1).htmlspecialchars($postfix,ENT_QUOTES,'UTF-8'); ?>" id="page_next">
|
||||
<i class="right chevron icon"></i>
|
||||
</a>
|
||||
</div>
|
||||
@@ -176,15 +176,15 @@
|
||||
?>
|
||||
<div style="text-align: center; ">
|
||||
<div class="ui pagination menu" style="box-shadow: none; ">
|
||||
<a class="<?php if($page==1) echo "disabled "; ?>icon item" href="<?php if($page<>1) echo "problemset.php?page=".($page-1).htmlentities($postfix,ENT_QUOTES,'UTF-8'); ?>" id="page_prev">
|
||||
<a class="<?php if($page==1) echo "disabled "; ?>icon item" href="<?php if($page<>1) echo "problemset.php?page=".($page-1).htmlspecialchars($postfix,ENT_QUOTES,'UTF-8'); ?>" id="page_prev">
|
||||
<i class="left chevron icon"></i>
|
||||
</a>
|
||||
<?php
|
||||
for ($i=$start;$i<=$end;$i++){
|
||||
echo "<a class=\"".($page==$i?"active ":"")."item\" href=\"problemset.php?page=".$i.htmlentities($postfix,ENT_QUOTES,'UTF-8')."\">".$i."</a>";
|
||||
echo "<a class=\"".($page==$i?"active ":"")."item\" href=\"problemset.php?page=".$i.htmlspecialchars($postfix,ENT_QUOTES,'UTF-8')."\">".$i."</a>";
|
||||
}
|
||||
?>
|
||||
<a class="<?php if($page==$view_total_page) echo "disabled "; ?> icon item" href="<?php if($page<>$view_total_page) echo "problemset.php?page=".($page+1).htmlentities($postfix,ENT_QUOTES,'UTF-8'); ?>" id="page_next">
|
||||
<a class="<?php if($page==$view_total_page) echo "disabled "; ?> icon item" href="<?php if($page<>$view_total_page) echo "problemset.php?page=".($page+1).htmlspecialchars($postfix,ENT_QUOTES,'UTF-8'); ?>" id="page_next">
|
||||
<i class="right chevron icon"></i>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user