MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / validateCookiePath

Function validateCookiePath

out/cli.cjs:62356–62363  ·  view source on GitHub ↗
(path5)

Source from the content-addressed store, hash-verified

62354 for (const char of value) {
62355 const code = char.charCodeAt(0);
62356 if (code < 33 || // exclude CTLs (0-31)
62357 code === 34 || code === 44 || code === 59 || code === 92 || code > 126) {
62358 throw new Error("Invalid header value");
62359 }
62360 }
62361 }
62362 function validateCookiePath(path5) {
62363 for (const char of path5) {
62364 const code = char.charCodeAt(0);
62365 if (code < 33 || char === ";") {
62366 throw new Error("Invalid cookie path");

Callers 1

stringify2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…