Fixes after MAX IV experiment
This commit is contained in:
@@ -62,18 +62,6 @@ void StreamWriter::Cancel() {
|
||||
image_puller.Abort();
|
||||
}
|
||||
|
||||
void StreamWriter::CheckPath(const std::string &s) {
|
||||
if (s.front() == '/')
|
||||
throw JFJochException(JFJochExceptionCategory::InputParameterInvalid,
|
||||
"Path cannot start with slash");
|
||||
if (s.substr(0,3) == "../")
|
||||
throw JFJochException(JFJochExceptionCategory::InputParameterInvalid,
|
||||
"Path cannot start with ../");
|
||||
if (s.find("/../") != std::string::npos)
|
||||
throw JFJochException(JFJochExceptionCategory::InputParameterInvalid,
|
||||
"Path cannot contain /../");
|
||||
}
|
||||
|
||||
StreamWriterOutput StreamWriter::Run() {
|
||||
StreamWriterOutput ret;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user