mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
改进UrlQuery
对无参URL增加判断识别(issue#IBRVE4@Gitee)
This commit is contained in:
@@ -222,6 +222,9 @@ public class UrlQuery {
|
||||
if (StrUtil.isBlank(queryStr)) {
|
||||
return this;
|
||||
}
|
||||
} else if(StrUtil.startWith(queryStr, "http://") || StrUtil.startWith(queryStr, "https://")){
|
||||
// issue#IBRVE4 用户传入只有URL,没有param部分,返回空
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user