1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 09:34:54 +02:00

Merge pull request #2685 from arunshekher/newstags_shortcode_html_validation_fix

Fix 'Illegal character in query: space is not allowed.' html validation error
This commit is contained in:
Cameron
2017-06-14 11:46:25 -07:00
committed by GitHub

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>";
}
}