Non UTF-8 encoded filenames in userfiles/images/ or userfiles/downloads/
caused the editor initialization to fail. We fix this by simply ignoring
such files by virtue of preg_match() with an u modifier returning
null in case of invalid UTF-8. We also make sure that we never
truncate a UTF-8 string at an invalid position by using utf8_substr().
Non UTF-8 encoded filenames in userfiles/images/ or userfiles/downloads/ caused the editor initialization to fail. We fix this by simply ignoring such files by virtue of
preg_match()
with anu
modifier returningnull
in case of invalid UTF-8. We also make sure that we never truncate a UTF-8 string at an invalid position by usingutf8_substr()
.