提交 a71b84d4 编写于 作者: H HanCong03

JSP版本修复上传路径错误的bug

上级 1cff04bb
......@@ -7,7 +7,7 @@
3. 过滤掉word中粘贴过来的a标签被误命中为锚点
4. 扩展的UI组件需要配置toolbars参数才可显示
5. ASP 创建目录 BUG 修复
6. JSP版本修复默认上传路径错误的bug。
##1.4.3
###bug修复&优化改进
......
......@@ -40,15 +40,16 @@ public final class ConfigManager {
rootPath = rootPath.replace( "\\", "/" );
this.rootPath = rootPath;
this.contextPath = contextPath;
if ( contextPath.length() > 0 ) {
this.originalPath = this.rootPath + uri.substring( contextPath.length() );
this.rootPath = rootPath.substring( 0, rootPath.length() - contextPath.length() );
} else {
this.originalPath = this.rootPath + uri;
this.rootPath = rootPath;
}
this.originalPath = this.rootPath + uri;
this.initEnv();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册