Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ internal static void ValidateDataDirectory(string dataDirectory)
internal static void ValidateExporterPath(string dataExporterPath)
{
var effectivePath = EffectiveDataExporterFullPath(dataExporterPath);
if (effectivePath.Contains("..")) throw new BadRequestException("Invalid exporter path.");

if (File.Exists(effectivePath) == false)
throw new FileNotFoundException($"Could not find file {StorageExporterExecutable} at given location");
Expand Down