修正用户列表选择的selectData变量可能造成XSS漏洞

This commit is contained in:
thinkgem
2018-08-09 22:45:19 +08:00
parent 19ba6daea7
commit 0e67815b8d
3 changed files with 10 additions and 3 deletions

View File

@@ -167,7 +167,9 @@ public class EncodeUtils {
* URL 解码, Encode默认为UTF-8.
*/
public static String decodeUrl(String part, String encoding) {
if (part == null){
return null;
}
try {
return URLDecoder.decode(part, encoding);
} catch (UnsupportedEncodingException e) {