User tests: Successful: Unsuccessful:
Make a module "Feed display" and take for eg. this as feed Url: http://www.zdnet.de/feed/
The above feed gives URLs like
In line 104 of /modules/mod_feed/tmpl/default
<?php echo $uri; ?>
should be replaced with
<?php preg_replace('/&(?!amp;)/', '&', $uri); ?>
<?php echo $uri; ?>
also in line 66 of the same file.
& don't get replaced.
Joomla! 3.3.6
See: #4862 by @dirk-graetz
Labels |
Added:
?
|
Category | ⇒ | Front End Modules |
Easy | No | ⇒ | Yes |
Rel_Number | ⇒ | 4862 | |
Relation Type | ⇒ | Related to |
It would give
diff --git a/modules/mod_feed/tmpl/default.php b/modules/mod_feed/tmpl/default.php
index 56f2e2f..ce8732a 100644
--- a/modules/mod_feed/tmpl/default.php
+++ b/modules/mod_feed/tmpl/default.php
@@ -64,5 +64,5 @@
?>
<h2 class="<?php echo $direction; ?>">
- <a href="<?php echo str_replace('&', '&', $rssurl); ?>" target="_blank">
+ <a href="<?php echo htmlspecialchars($rssurl); ?>" target="_blank">
<?php echo $feed->title; ?></a>
</h2>
@@ -102,5 +102,5 @@
<?php if (!empty($uri)) : ?>
<h5 class="feed-link">
- <a href="<?php echo $uri; ?>" target="_blank">
+ <a href="<?php echo htmlspecialchars($uri); ?>" target="_blank">
<?php echo $feed[$i]->title; ?></a></h5>
<?php else : ?>
and solves the issue
fixed @infograf768
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-10-21 14:29:57 |
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-10-21 14:29:58 |
Can't we use here
htmlspecialchars
?