Here you can find the source of filePathBlackList(String value)
public static String filePathBlackList(String value)
//package com.java2s; //License from project: Apache License public class Main { public static String filePathBlackList(String value) { String returnValue = value; if (returnValue == null || returnValue.trim().equals("")) { return ""; }// w ww . j a v a 2s.c o m returnValue = returnValue.replaceAll("\\.\\./", ""); // ../ returnValue = returnValue.replaceAll("\\.\\.\\\\", ""); // ..\ return returnValue; } }