| | |
| | | import com.google.gson.JsonSyntaxException; |
| | | import com.whyc.pojo.UserInf; |
| | | import org.apache.commons.codec.digest.DigestUtils; |
| | | import org.apache.commons.io.FilenameUtils; |
| | | import org.springframework.web.context.request.RequestContextHolder; |
| | | import org.springframework.web.context.request.ServletRequestAttributes; |
| | | import sun.misc.BASE64Decoder; |
| | |
| | | Pattern pattern = Pattern.compile("[\\s\\\\/:\\*\\?\\\"<>\\|]"); |
| | | Matcher matcher = pattern.matcher(fileName); |
| | | fileName = matcher.replaceAll(""); |
| | | return fileName; |
| | | return FilenameUtils.getName(fileName); |
| | | } |
| | | |
| | | } |