From 30b8d63f216a802eeda7c67a686020c2bf999c9d Mon Sep 17 00:00:00 2001 From: wangwei Date: Sat, 22 Jun 2019 16:32:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=8A=AB=E6=8C=81=E3=80=81?= =?UTF-8?q?=E6=B3=A8=E5=85=A5=E8=84=9A=E6=9C=AC=E3=80=81=E8=AE=BF=E9=97=AE?= =?UTF-8?q?=E9=98=BB=E6=96=AD=E9=A1=B5=E9=9D=A2=E6=96=87=E4=BB=B6=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E5=8F=8A=E9=98=BB=E6=96=AD=E9=A1=B5=E9=9D=A2=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=8F=8F=E8=BF=B0=E5=AD=97=E7=AC=A6=E9=95=BF=E5=BA=A6?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../configuration/ProxyFileResponsePageService.java | 1 + src/main/resources/sql/20190619/alter_table.sql | 2 ++ .../webapp/WEB-INF/views/cfg/proxy/fileHijack/form.jsp | 2 +- .../WEB-INF/views/cfg/proxy/fileInsertScript/form.jsp | 2 +- .../WEB-INF/views/cfg/proxy/fileResponsePage/form.jsp | 7 +++---- 5 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 src/main/resources/sql/20190619/alter_table.sql diff --git a/src/main/java/com/nis/web/service/configuration/ProxyFileResponsePageService.java b/src/main/java/com/nis/web/service/configuration/ProxyFileResponsePageService.java index 54bb25a3c..a19104328 100644 --- a/src/main/java/com/nis/web/service/configuration/ProxyFileResponsePageService.java +++ b/src/main/java/com/nis/web/service/configuration/ProxyFileResponsePageService.java @@ -53,6 +53,7 @@ public class ProxyFileResponsePageService extends BaseService{ } entity.setIsValid(0); entity.setIsAudit(0); + entity.setFileDesc(entity.getCfgDesc()); //新增 if(entity.getCfgId()==null){ Integer compileId = ConfigServiceUtil.getId(1, 1).get(0);//获取编译id diff --git a/src/main/resources/sql/20190619/alter_table.sql b/src/main/resources/sql/20190619/alter_table.sql new file mode 100644 index 000000000..63a33cce7 --- /dev/null +++ b/src/main/resources/sql/20190619/alter_table.sql @@ -0,0 +1,2 @@ +#修改阻断页面文件名称字段的字符长度 +ALTER TABLE pxy_profile_response_pages MODIFY file_desc varchar(128) NOT NULL COMMENT '文件名称'; \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/cfg/proxy/fileHijack/form.jsp b/src/main/webapp/WEB-INF/views/cfg/proxy/fileHijack/form.jsp index 3cbcd4e72..72e239942 100644 --- a/src/main/webapp/WEB-INF/views/cfg/proxy/fileHijack/form.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/proxy/fileHijack/form.jsp @@ -41,7 +41,7 @@ function cfgFileValidate(){ var flag=false; //状态,检测文件后缀用 - var cFile=$("#cfgFile").val();//文件的值 + var cFile=$("#urlInfo").val();//文件的值 //取出上传文件的扩展名 var index=cFile.lastIndexOf("."); var ext = cFile.substr(index+1).toLowerCase(); diff --git a/src/main/webapp/WEB-INF/views/cfg/proxy/fileInsertScript/form.jsp b/src/main/webapp/WEB-INF/views/cfg/proxy/fileInsertScript/form.jsp index 466a827f1..383e6066a 100644 --- a/src/main/webapp/WEB-INF/views/cfg/proxy/fileInsertScript/form.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/proxy/fileInsertScript/form.jsp @@ -41,7 +41,7 @@ function cfgFileValidate(){ var flag=false; //状态,检测文件后缀用 var arr=["js","css"];//使用是什么格式的后缀 - var cFile=$("#cfgFile").val();//文件的值 + var cFile=$("#urlInfo").val();//文件的值 //取出上传文件的扩展名 var index=cFile.lastIndexOf("."); var ext = cFile.substr(index+1).toLowerCase(); diff --git a/src/main/webapp/WEB-INF/views/cfg/proxy/fileResponsePage/form.jsp b/src/main/webapp/WEB-INF/views/cfg/proxy/fileResponsePage/form.jsp index 8d089e6b1..b8247130d 100644 --- a/src/main/webapp/WEB-INF/views/cfg/proxy/fileResponsePage/form.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/proxy/fileResponsePage/form.jsp @@ -40,7 +40,7 @@ function cfgFileValidate(){ var flag=false; //状态,检测文件后缀用 var arr=["html"];//使用是什么格式的后缀 - var cFile=$("#cfgFile").val();//文件的值 + var cFile=$("#urlInfo").val();//文件的值 //取出上传文件的扩展名 var index=cFile.lastIndexOf("."); var ext = cFile.substr(index+1).toLowerCase(); @@ -153,11 +153,10 @@
- +
- +
-