function param_has_traversal (param) {
    // Left and right slashes are treated equally
    var path = "/" + param.replaceAll('\\', '/') + "/"

    if (path.indexOf("/../") != -1)
    {
        return true
    }
    return false
}
//Determine whether the parameter includes path traversal, which is more strict than path
Determine whether the parameter includes path traversal, which is more strict than path
Determine whether the parameter includes path traversal which is more strict than path
function param_has_traversal (param) {
    var path = "/" + param.replaceAll('\\', '/') + "/"
    if (path.indexOf("/../") != -1)
    {
        return true
    }
    return false
}
function param_has_traversal ( param ) { var path = "/" + param . replaceAll ( '\\' , '/' ) + "/" if ( path . indexOf ( "/../" ) != - 1 ) { return true } return false }
Determine whether the parameter includes path traversal, which is more strict than path
Determine whether the parameter includes path traversal which is more strict than path
// Left and right slashes are treated equally