Some improvements

This commit is contained in:
Reinier Criel 2025-12-05 15:13:12 -08:00
parent 7086cfa277
commit 8aa0615293
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;
}