aboutsummaryrefslogtreecommitdiff
path: root/app/views/helpers/view/rss_view.phtml
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-08-23 21:59:44 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-08-25 12:44:08 +0200
commit4cf9119a7dfd8b8a45344dff4d884a445dcb5a5a (patch)
treef3904f39e21c014502b4a6a70b420047a91df53a /app/views/helpers/view/rss_view.phtml
parent31a6a13268023a2db5eba2445ee6c7db4a6d9623 (diff)
UTF-8 encoding bug on PHP older than 5.4
In PHP older than 5.4.0, the default charset for htmlspecialchars() and html_entity_decode() was ISO-8859-1, which created erroneous UTF-8 characters
Diffstat (limited to 'app/views/helpers/view/rss_view.phtml')
-rwxr-xr-xapp/views/helpers/view/rss_view.phtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/helpers/view/rss_view.phtml b/app/views/helpers/view/rss_view.phtml
index 83de6de2e..8ce636918 100755
--- a/app/views/helpers/view/rss_view.phtml
+++ b/app/views/helpers/view/rss_view.phtml
@@ -12,7 +12,7 @@ $items = $this->entryPaginator->items ();
foreach ($items as $item) {
?>
<item>
- <title><?php echo htmlspecialchars(html_entity_decode($item->title ())); ?></title>
+ <title><?php echo htmlspecialchars(html_entity_decode($item->title (), ENT_NOQUOTES, 'UTF-8'), ENT_NOQUOTES, 'UTF-8'); ?></title>
<link><?php echo $item->link (); ?></link>
<?php $author = $item->author (); ?>
<?php if ($author != '') { ?>