aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-11-30 09:46:53 +0100
committerGravatar GitHub <noreply@github.com> 2023-11-30 09:46:53 +0100
commit969758a73e37dd8540a2ffb41776b39e20ac44be (patch)
tree164c06b456392c41f34a6cb2845c0e76e79e62b6 /app
parent7e1f549eb47850457b6828be57af332f7042d1cd (diff)
Fix XPath encoding (#5912)
fix https://github.com/FreshRSS/FreshRSS/issues/5430 fix https://github.com/FreshRSS/FreshRSS/issues/5911
Diffstat (limited to 'app')
-rw-r--r--app/views/index/rss.phtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/index/rss.phtml b/app/views/index/rss.phtml
index a6d0d2a10..a10aa806b 100644
--- a/app/views/index/rss.phtml
+++ b/app/views/index/rss.phtml
@@ -8,11 +8,11 @@
>
<channel>
<title><?= $this->rss_title ?></title>
- <link><?= $this->internal_rendering ? $this->rss_url : Minz_Url::display('', 'html', true) ?></link>
+ <link><?= $this->internal_rendering ? htmlspecialchars($this->rss_url, ENT_NOQUOTES, 'UTF-8') : Minz_Url::display('', 'html', true) ?></link>
<description><?= _t('index.feed.rss_of', $this->rss_title) ?></description>
<pubDate><?= date('D, d M Y H:i:s O') ?></pubDate>
<lastBuildDate><?= gmdate('D, d M Y H:i:s') ?> GMT</lastBuildDate>
- <atom:link href="<?= $this->internal_rendering ? $this->rss_url :
+ <atom:link href="<?= $this->internal_rendering ? htmlspecialchars($this->rss_url, ENT_COMPAT, 'UTF-8') :
Minz_Url::display($this->rss_url, 'html', true) ?>" rel="self" type="application/rss+xml" />
<?php
/** @var FreshRSS_Entry */