]> git.wh0rd.org Git - tt-rss.git/commitdiff
do not use iconv in tag_is_valid, data should be utf8 anyway at this point; remove...
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 9 Aug 2013 05:19:57 +0000 (09:19 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 9 Aug 2013 05:19:57 +0000 (09:19 +0400)
include/functions.php
include/sanity_check.php

index 6bc52e9d95db0cf1969daca91118580b8f7f8b53..f447d06f53a037759699dff53afe7eae7be70cd9 100644 (file)
                if (preg_match("/^[0-9]*$/", $tag)) return false;
                if (mb_strlen($tag) > 250) return false;
 
-               if (function_exists('iconv')) {
-                       $tag = iconv("utf-8", "utf-8", $tag);
-               }
-
                if (!$tag) return false;
 
                return true;
index f3621da6f80cfc21f3eeafdbaa17dcd5cc8bd628..1aa581bfc565ad18b113a54237c4a6cd38fbe112 100644 (file)
                                array_push($errors, "PHP support for ctype functions are required by HTMLPurifier.");
                        }
 
-                       if (!function_exists("iconv")) {
-                               array_push($errors, "PHP support for iconv is required to handle multiple charsets.");
-                       }
-
                        /* if (ini_get("safe_mode")) {
                                array_push($errors, "PHP safe mode setting is not supported.");
                        } */