mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-24 00:51:27 +00:00
tag_is_valid: only call iconv() when function exists
This commit is contained in:
@@ -4503,7 +4503,10 @@
|
||||
if ($tag == '') return false;
|
||||
if (preg_match("/^[0-9]*$/", $tag)) return false;
|
||||
|
||||
$tag = iconv("utf-8", "utf-8", $tag);
|
||||
if (function_exists('iconv')) {
|
||||
$tag = iconv("utf-8", "utf-8", $tag);
|
||||
}
|
||||
|
||||
if (!$tag) return false;
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user