6.25 动态防护-weboffice文件名处理

This commit is contained in:
jl-zhoujl2
2023-06-25 14:37:24 +08:00
parent 9938b258e9
commit 70f7361474
3 changed files with 4 additions and 4 deletions

View File

@ -79,7 +79,7 @@
savePDF=getQueryString('savePDF');
HTMLfileCode=getQueryString('HTMLfileCode');
saveHTML=getQueryString('saveHTML');
fileName=getQueryString('fileName');
fileName=decodeURI(getQueryString('fileName'));
init(readonly,DocfileCode);"
>
<script language="JScript" for="TANGER_OCX" event="OnCustomButtonOnMenuCmd(btnPos,btnCaption,btnCmdid)">

View File

@ -83,7 +83,7 @@
savePDF=getQueryString('savePDF');
HTMLfileCode=getQueryString('HTMLfileCode');
saveHTML=getQueryString('saveHTML');
fileName=getQueryString('fileName');
fileName=decodeURI(getQueryString('fileName'));
init(readonly,DocfileCode);"
onbeforeunload="closePostMessage()"
>

View File

@ -2,7 +2,7 @@
* @Author: zhoujianlong
* @Date: 2021-06-09 15:29:07
* @Last Modified by: zhoujianlong
* @Last Modified time: 2022-06-24 23:26:28
* @Last Modified time: 2023-06-21 16:36:57
*/
import { Button, Modal } from 'antd';
import { LoadingOutlined } from '@ant-design/icons';
@ -259,7 +259,7 @@ const WebOffice0609: React.FC<WebOfficeProps> = (props) => {
}
openUrl += `.html?readonly=${readOnly}&DocfileCode=${docFileCode_}&PDFfileCode=${pdfFileCode_}&HTMLfileCode=${htmlFileCode_}&savePDF=${savePDF}&saveHTML=${saveHTML}&varNtkoGUID=${window.ntkoBrowser.thisNTKOGUID}`;
if (fileName != '') {
const format = fileName.replace(/\//g, "-") //格式化文件名称
const format = encodeURI(encodeURI(fileName.replace(/\//g, "-"))) //格式化文件名称
openUrl += `&fileName=${format}`
}
window.ntkoBrowser.openWindow(openUrl);