mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix path encode
This commit is contained in:
parent
8d28db0e94
commit
4c74a7defc
@ -128,7 +128,7 @@ public class UrlPath {
|
|||||||
|
|
||||||
final StringBuilder builder = new StringBuilder();
|
final StringBuilder builder = new StringBuilder();
|
||||||
for (String segment : segments) {
|
for (String segment : segments) {
|
||||||
builder.append(CharUtil.SLASH).append(URLUtil.encodeQuery(segment, charset));
|
builder.append(CharUtil.SLASH).append(URLUtil.encode(segment, charset));
|
||||||
}
|
}
|
||||||
if (withEngTag || StrUtil.isEmpty(builder)) {
|
if (withEngTag || StrUtil.isEmpty(builder)) {
|
||||||
builder.append(CharUtil.SLASH);
|
builder.append(CharUtil.SLASH);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user