Skip to content

Commit b47dba2

Browse files
cchadowitzngxson
andauthored
fix misleading comment
Co-authored-by: Xuan-Son Nguyen <[email protected]>
1 parent 75e1291 commit b47dba2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/server/utils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ static json oaicompat_chat_params_parse(
649649
throw std::runtime_error("Invalid filename piece '" + piece + "': " + fname);
650650
}
651651
}
652-
// Check allowed local media path - fs_validate_filename already validated that there is no ".." or "."
652+
// Check allowed local media path
653653
if (opt.allowed_local_media_path == "" || !string_starts_with(fname, opt.allowed_local_media_path)) {
654654
throw std::runtime_error("File path not allowed");
655655
}

0 commit comments

Comments
 (0)