MCPcopy Index your code
hub / github.com/NodeBB/nodebb-plugin-markdown / allowed

Function allowed

index.js:379–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377 */
378 const allowedRoots = [nconf.get('upload_url'), '/uploads'];
379 const allowed = pathname => allowedRoots.some(root => pathname.toString().startsWith(root) || pathname.toString().startsWith(nconf.get('relative_path') + root));
380
381 try {
382 const urlObj = new URL(src, nconf.get('url'));

Callers 1

index.jsFile · 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…