• Модуль: webdav
  • Путь к файлу: ~/bitrix/modules/webdav/classes/general.php
  • Класс: CWebDavBase
  • Вызов: CWebDavBase::CleanRelativePathString
static function CleanRelativePathString($filePath, $fullPath = null)
{
	$io = self::GetIo();
	$filePath = $io->CombinePath("/", $filePath);
	if($fullPath !== null)
	{
		//$filePath = $io->CombinePath($fullPath, $filePath);
		$filePath = str_replace(array("///", "//"), "/", $fullPath . "/" .$filePath);
	}
	if(!$io->ValidatePathString($filePath))
	{
		return false;
	}
	return $filePath;
}