1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-07 07:06:30 +02:00

Fix for news tag links containing spaces.

This commit is contained in:
Cameron
2021-09-25 10:25:04 -07:00
parent af0b5dcb84
commit 5cf3f9d57b
2 changed files with 5 additions and 2 deletions

View File

@@ -1155,7 +1155,7 @@ class news_shortcodes extends e_shortcode
{
//$url = e107::getUrl()->create('news/list/tag',array('tag'=>rawurlencode($val))); // e_BASE."news.php?tag=".$val
// will be encoded during create()
$url = e107::getUrl()->create('news/list/tag',array('tag'=>$val)); // e_BASE."news.php?tag=".$val
$url = e107::getUrl()->create('news/list/tag',array('tag'=> str_replace(' ','-',$val))); // e_BASE."news.php?tag=".$val
$words[] = "<a class='".$class."' href='".$url."'>".$start.$val.$end."</a>";
}
}