修复外链带端口出现的异常(I86J4B)

This commit is contained in:
RuoYi 2023-11-07 11:38:19 +08:00
parent d8255edf84
commit 8cf8c8acd0
2 changed files with 3 additions and 3 deletions

View File

@ -239,7 +239,7 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils
return str.substring(start, end);
}
/**
* 判断是否为空并且不是空白字符
*

View File

@ -525,7 +525,7 @@ public class SysMenuServiceImpl implements ISysMenuService
*/
public String innerLinkReplaceEach(String path)
{
return StringUtils.replaceEach(path, new String[] { Constants.HTTP, Constants.HTTPS, Constants.WWW, "." },
new String[] { "", "", "", "/" });
return StringUtils.replaceEach(path, new String[] { Constants.HTTP, Constants.HTTPS, Constants.WWW, ".", ":" },
new String[] { "", "", "", "/", "/" });
}
}