Side-chains
This commit is contained in:
@@ -520,7 +520,7 @@ public:
|
||||
|
||||
res.set(HttpField::content_type, "application/json");
|
||||
res.set(HttpField::cache_control, "no-cache");
|
||||
fs::path path = model->GetStorage().FromAbstractPathJson(request_uri.query("path"));
|
||||
fs::path path = model->GetStorage().FromAbstractPathString(request_uri.query("path"));
|
||||
|
||||
if (!fs::exists(path) || !this->model->IsInUploadsDirectory(path) || HasDotDot(path))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user