diff options
author | Loui Chang <louipc.ist@gmail.com> | 2010-11-03 06:03:45 +0100 |
---|---|---|
committer | Loui Chang <louipc.ist@gmail.com> | 2010-11-03 06:03:45 +0100 |
commit | dbb8bb783f2f22b68ad2d65f020390428e77c479 (patch) | |
tree | d19fa0a825fbb2b382a3f8fb49373229a20f5fa5 /web/template | |
parent | dc8265a96296720e0c42a1d89400c8dde92e7106 (diff) | |
download | aur-dbb8bb783f2f22b68ad2d65f020390428e77c479.tar.gz aur-dbb8bb783f2f22b68ad2d65f020390428e77c479.tar.xz |
TU: Use htmlspecialchars instead of htmlentities.
Let the utf8 shine through.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web/template')
-rw-r--r-- | web/template/tu_details.php | 2 | ||||
-rw-r--r-- | web/template/tu_list.php | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/web/template/tu_details.php b/web/template/tu_details.php index 0016dfe8..315e1b90 100644 --- a/web/template/tu_details.php +++ b/web/template/tu_details.php @@ -21,7 +21,7 @@ N/A <?php print __('End') ?>: <b><?php print gmdate("r", $row['End']) ?></b></p> <p> -<?php print str_replace("\n", "<br />\n", htmlentities($row['Agenda'])) ?> +<?php print str_replace("\n", "<br />\n", htmlspecialchars($row['Agenda'])) ?> </p> <table class="boxSoft" width='100%' cellspacing='0' cellpadding='2'> diff --git a/web/template/tu_list.php b/web/template/tu_list.php index f734cec5..f64d3834 100644 --- a/web/template/tu_list.php +++ b/web/template/tu_list.php @@ -20,11 +20,7 @@ <tr> <td class='<?php print $c ?>'><span class='f4'><span class='blue'> <?php - if (strlen($row["Agenda"]) >= $prev_Len) { - $row["Agenda"] = htmlentities(substr($row["Agenda"], 0, $prev_Len)) . "..."; - } else { - $row["Agenda"] = htmlentities($row["Agenda"]); - } + $row["Agenda"] = htmlspecialchars(substr($row["Agenda"], 0, $prev_Len)); ?> <a href='tu.php?id=<?php print $row['ID'] ?>'><?php print $row["Agenda"] ?></a></span></span> </td> |