• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/virtual_io_filesystem.php
  • Класс: CBXVirtualIoFileSystem
  • Вызов: CBXVirtualIoFileSystem::ValidateCommon
static function ValidateCommon($path)
{
	if (trim($path) == '')
	{
		return false;
	}

	if (strpos($path, "") !== false)
	{
		return false;
	}

	if(preg_match("#(".self::invalidBytes.")#", $path))
	{
		return false;
	}

	if(defined("BX_UTF") && !mb_check_encoding($path, "UTF-8"))
	{
		return false;
	}

	return true;
}