mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix path encode
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user