| 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')); |
no outgoing calls
no test coverage detected
searching dependent graphs…