tag_is_valid: only call iconv() when function exists
This commit is contained in:
parent
19a1da0d7a
commit
31365729dc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue