We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75e1291 commit b47dba2Copy full SHA for b47dba2
tools/server/utils.hpp
@@ -649,7 +649,7 @@ static json oaicompat_chat_params_parse(
649
throw std::runtime_error("Invalid filename piece '" + piece + "': " + fname);
650
}
651
652
- // Check allowed local media path - fs_validate_filename already validated that there is no ".." or "."
+ // Check allowed local media path
653
if (opt.allowed_local_media_path == "" || !string_starts_with(fname, opt.allowed_local_media_path)) {
654
throw std::runtime_error("File path not allowed");
655
0 commit comments