1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Fix 'Illegal character in query: space is not allowed.' html validation error

This commit is contained in:
Arun S. Sekher 2017-06-12 02:28:03 +04:00
parent a2f7546e1f
commit 206c407724

View File

@ -1087,7 +1087,7 @@ class news_shortcodes extends e_shortcode
{
if(trim($val))
{
$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'=>rawurlencode($val))); // e_BASE."news.php?tag=".$val
$words[] = "<a class='".$class."' href='".$url."'>".$start.$val.$end."</a>";
}
}