summaryrefslogtreecommitdiff
path: root/it_xml.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_xml.class')
-rw-r--r--it_xml.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_xml.class b/it_xml.class
index 644ef9e..32617b3 100644
--- a/it_xml.class
+++ b/it_xml.class
@@ -138,7 +138,7 @@ function _sanitize($xmldata, $isutf8 = null)
}
# Encode non-utf8 characters in a string, leave utf8 alone
-function _utf8_fix($str)
+static function _utf8_fix($str)
{
return preg_match('/^([\xc0-\xdf][\x80-\xbf]|[\xe0-\xef][\x80-\xbf][\x80-\xbf]|[\xf0-\xf7][\x80-\xbf][\x80-\xbf][\x80-\xbf])$/', $str) ? $str : utf8_encode($str);
}