PHP 7.4.33
Preview: index.js Size: 290 B
/var/www/cookieconsent.bitkit.dk/httpdocs/node_modules/is-path-inside/index.js
'use strict';
const path = require('path');

module.exports = (childPath, parentPath) => {
	const relation = path.relative(parentPath, childPath);
	return Boolean(
		relation &&
		relation !== '..' &&
		!relation.startsWith(`..${path.sep}`) &&
		relation !== path.resolve(childPath)
	);
};

Directory Contents

Dirs: 0 × Files: 5
Name Size Perms Modified Actions
758 B lrw-r--r-- 2025-06-16 05:45:39
Edit Download
290 B lrw-r--r-- 2025-06-16 05:45:39
Edit Download
1.08 KB lrw-r--r-- 2025-06-16 05:45:39
Edit Download
590 B lrw-r--r-- 2025-06-16 05:45:39
Edit Download
1.34 KB lrw-r--r-- 2025-06-16 05:45:39
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).