code: protected boolean isBasename(String potentialPath){
          if (ALLOW_VIEW_NAME_PATH_TRAVERSAL) {
              return true;
          } else {
              if (potentialPath.contains("\\") || potentialPath.contains("/")) {
                  // prevent absolute path and folder traversal to find scripts
                  return false;
              }
              
              return true;
          }
      }
docs: Ensure the path that is passed is only the name of the file and not a path