1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-27 08:14:46 +02:00

Bugtracker #4345 - encode ampersands in feed links. Fix template

This commit is contained in:
e107steved
2008-05-30 20:36:47 +00:00
parent dcca1f544e
commit 822e811bd9
3 changed files with 13 additions and 11 deletions

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/newsfeed/newsfeed_functions.php,v $
| $Revision: 1.3 $
| $Date: 2008-01-20 04:46:35 $
| $Author: mcfly_e107 $
| $Revision: 1.4 $
| $Date: 2008-05-30 20:36:38 $
| $Author: e107steved $
+----------------------------------------------------------------------------+
*/
@@ -169,6 +169,7 @@ if(!function_exists("newsfeed_info"))
{
$item = $item_total[$i];
$FEEDITEMLINK = "<a href='".$item['link']."' rel='external'>".$tp -> toHTML($item['title'], TRUE)."</a>\n";
$FEEDITEMLINK = str_replace('&', '&amp;', $FEEDITEMLINK);
$feeditemtext = preg_replace("#\[[a-z0-9=]+\]|\[\/[a-z]+\]|\{[A-Z_]+\}#si", "", strip_tags($item['description']));
$FEEDITEMTEXT = $tp->text_truncate($feeditemtext, $truncate, $truncate_string);