Some improvements

This commit is contained in:
Reinier Criel 2025-12-05 15:13:12 -08:00 committed by Sander Declerck
parent 02c30a2544
commit 314001eb0c
No known key found for this signature in database
2 changed files with 348 additions and 1 deletions

View file

@ -103,7 +103,7 @@ export function getCombinedCaBundlePath() {
function readUserCertificateFile(certPath) {
try {
// Validate path is a string and not attempting path traversal
if (typeof certPath !== "string" || certPath.includes("..") || certPath.startsWith("/")) {
if (typeof certPath !== "string" || certPath.includes("..")) {
return null;
}