We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 189f671 commit 46731f2Copy full SHA for 46731f2
eladmin-common/src/main/java/me/zhengjie/utils/StringUtils.java
@@ -171,7 +171,8 @@ public static String getCityInfo(String ip) {
171
172
public static String getBrowser(HttpServletRequest request) {
173
UserAgent ua = UserAgentUtil.parse(request.getHeader("User-Agent"));
174
- return ua.getBrowser().toString() + " " + ua.getVersion();
+ String browser = ua.getBrowser().toString() + " " + ua.getVersion();
175
+ return browser.replace(".0.0.0","");
176
}
177
178
/**
0 commit comments