Unicode support

Support unicode for tag and URL eg. Chinese, Japanese, Arabic etc.
This commit is contained in:
Danang Probo Sayekti 2014-06-29 05:25:09 +07:00
commit c7441b84f6
2 changed files with 11 additions and 12 deletions

View file

@ -591,7 +591,7 @@ function get_related($tag) {
$perpage = config('related.count');
$posts = get_tag(strip_tags($tag), 1, $perpage+1, true);
$tmp = array();
$req = $_SERVER['REQUEST_URI'];
$req = urldecode($_SERVER['REQUEST_URI']);
foreach ($posts as $post) {
$url = $post->url;