• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/internals/path.php
  • Класс: BitrixDiskInternalsPath
  • Вызов: Path::validateCommon
static function validateCommon($path): bool
{
	/** @see BitrixMainIOPath::validateCommon() */
	if (!is_string($path))
	{
		return false;
	}

	if (trim($path) === "")
	{
		return false;
	}

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

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

	return true;
}