Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
antSword
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HuangJunbo
antSword
Commits
86f0b093
Commit
86f0b093
authored
Apr 12, 2016
by
antoor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed file management template XSS security issues
修复文件管理模板XSS安全问题
parent
d36f3e78
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
CHANGELOG.md
CHANGELOG.md
+3
-0
folder.jsx
source/modules/filemanager/folder.jsx
+5
-5
No files found.
CHANGELOG.md
View file @
86f0b093
...
...
@@ -3,6 +3,9 @@
> 同时也欢迎大家的参与!感谢各位朋友的支持! .TAT.
## 2016/04
### /12
1.
修复文件管理模板XSS安全问题
### /10 `(v.1.1.2)`
1.
增加文件管理中可执行文件的提示样式
2.
调整文件管理中任务面板默认折叠(当有任务时自动展开
...
...
source/modules/filemanager/folder.jsx
View file @
86f0b093
//
//
// 左侧目录 模块
//
//
const
LANG_T
=
antSword
[
'language'
][
'toastr'
];
const
LANG
=
antSword
[
'language'
][
'filemanager'
][
'folder'
];
...
...
@@ -74,8 +74,8 @@ class Folder {
for
(
let
_
in
obj
)
{
let
_path
=
path
+
_
;
let
_obj
=
{
id
:
_path
,
text
:
(
_
.
length
===
1
||
(
_
.
endsWith
(
':/'
)
&&
_
.
length
===
3
))
?
_
:
_
.
replace
(
/
\/
$/
,
''
)
id
:
antSword
.
noxss
(
_path
)
,
text
:
antSword
.
noxss
((
_
.
length
===
1
||
(
_
.
endsWith
(
':/'
)
&&
_
.
length
===
3
))
?
_
:
_
.
replace
(
/
\/
$/
,
''
)
)
};
let
_result
=
parseItem
(
obj
[
_
],
_path
);
if
(
_result
)
{
...
...
@@ -102,4 +102,4 @@ class Folder {
}
export
default
Folder
;
\ No newline at end of file
export
default
Folder
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment