dsql-admin/dsql-app/package-shared/functions/backend/db/pathTraversalCheck.js
Benjamin Toby d9d32a4643 Updates
2024-12-09 13:27:08 +01:00

15 lines
270 B
JavaScript

// @ts-check
/**
* # Path Traversal Check
*
* @param {string|number} text - Text or number or object
*
* @returns {string}
*/
function pathTraversalCheck(text) {
return text.toString().replace(/\//g, "");
}
module.exports = pathTraversalCheck;