Skip to content

Commit

Permalink
v1.0.17-RELEASE 临时更新:修正了文件名存在英文单引号时可能导致的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
KOHGYLW committed Apr 16, 2019
1 parent 68c1cb6 commit d85e9cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions webContext/js/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,7 @@ function showFolderTable(folderView) {
.each(
folderView.folderList,
function(n, f) {
f.folderName = f.folderName.replace('\'',''');
var folderRow = "<tr id='"+f.folderId+"' onclick='checkfile(event,"+'"'+f.folderId+'"'+")' ondblclick='checkConsFile(event,"+'"'+f.folderId+'"'+")' class='filerow' iskfolder='true' ><td><button onclick='entryFolder("
+ '"' + f.folderId + '"'
+ ")' class='btn btn-link btn-xs'>/"
Expand Down Expand Up @@ -772,6 +773,7 @@ function showFolderTable(folderView) {
.each(
folderView.fileList,
function(n, fi) {
fi.fileName = fi.fileName.replace('\'','&#39;');
var fileRow = "<tr id=" + fi.fileId + " onclick='checkfile(event," + '"'
+ fi.fileId + '"' + ")' ondblclick='checkConsFile(event,"+'"'+fi.fileId+'"'+")' id='" + fi.fileId
+ "' class='filerow'><td>" + fi.fileName
Expand Down
Loading

0 comments on commit d85e9cf

Please sign in to comment.