Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
apollo
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
apollo
Commits
15171a65
Commit
15171a65
authored
Apr 25, 2020
by
Jason Song
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix potential xss issue
parent
a5a2c068
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
apollo-portal/src/main/resources/static/i18n/en.json
apollo-portal/src/main/resources/static/i18n/en.json
+3
-3
apollo-portal/src/main/resources/static/scripts/controller/config/ConfigNamespaceController.js
...ic/scripts/controller/config/ConfigNamespaceController.js
+3
-1
apollo-portal/src/main/resources/static/scripts/directive/item-modal-directive.js
...esources/static/scripts/directive/item-modal-directive.js
+1
-1
No files found.
apollo-portal/src/main/resources/static/i18n/en.json
View file @
15171a65
...
...
@@ -731,9 +731,9 @@
"ItemModal.PleaseChooseCluster"
:
"Please Select Cluster"
,
"ItemModal.ModifiedTips"
:
"Update Successfully. need to release configuration to take effect"
,
"ItemModal.ModifyFailed"
:
"Failed to Update"
,
"ItemModal.Tabs"
:
"Tab
character"
,
"ItemModal.NewLine"
:
"Newline
character"
,
"ItemModal.Space"
:
"Blank
space"
,
"ItemModal.Tabs"
:
"Tab
-
character"
,
"ItemModal.NewLine"
:
"Newline
-
character"
,
"ItemModal.Space"
:
"Blank
-
space"
,
"ApolloNsPanel.LoadingHistoryError"
:
"Failed to load change history"
,
"ApolloNsPanel.LoadingGrayscaleError"
:
"Failed to load change history"
,
"ApolloNsPanel.Deleted"
:
"Delete Successfully"
,
...
...
apollo-portal/src/main/resources/static/scripts/controller/config/ConfigNamespaceController.js
View file @
15171a65
...
...
@@ -156,7 +156,9 @@ function controller($rootScope, $scope, $translate, toastr, AppUtil, EventManage
return
;
}
$scope
.
config
=
item
;
$scope
.
config
=
{};
$scope
.
config
.
key
=
_
.
escape
(
item
.
key
);
$scope
.
config
.
value
=
_
.
escape
(
item
.
value
);
$scope
.
toOperationNamespace
=
namespace
;
toDeleteItemId
=
item
.
id
;
...
...
apollo-portal/src/main/resources/static/scripts/directive/item-modal-directive.js
View file @
15171a65
...
...
@@ -144,7 +144,7 @@ function itemModalDirective($translate, toastr, $sce, AppUtil, EventManager, Con
return
;
}
var
hiddenCharCounter
=
0
,
valueWithHiddenChars
=
value
;
var
hiddenCharCounter
=
0
,
valueWithHiddenChars
=
_
.
escape
(
value
)
;
for
(
var
i
=
0
;
i
<
value
.
length
;
i
++
)
{
var
c
=
value
[
i
];
...
...
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