Skip to content

Commit

Permalink
#2985 Prevent XSS for REST API by escape String content:
Browse files Browse the repository at this point in the history
- fixed save Synoptic Panel;
- corrected gradle task: buildRun, buildRunDebug;
  • Loading branch information
Limraj committed Sep 2, 2024
1 parent 3f6d329 commit 805b4e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,11 @@ task stopDebug(type: Exec) {
}

task buildRun(type: GradleBuild) {
tasks = ['clearTomcat', 'clearProject', 'test', 'war', 'deployTomcat', 'run']
tasks = ['clearTomcat', 'clearProject', 'installWebDependency', 'test', 'war', 'deployTomcat', 'run']
}

task buildRunDebug(type: GradleBuild) {
tasks = ['clearTomcat', 'clearProject', 'test', 'war', 'deployTomcat', 'runDebug']
tasks = ['clearTomcat', 'clearProject', 'installWebDependency', 'test', 'war', 'deployTomcat', 'runDebug']
}

task buildRunDebugDev(type: GradleBuild) {
Expand Down
3 changes: 2 additions & 1 deletion scadalts-ui/src/views/SynopticPanel/SynopticPanelItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ export default {
savePanel(childGraphicItems) {
this.graphicItems = childGraphicItems;
this.panel.componentData = JSON.stringify([...this.graphicItems]);
this.panel.vectorImage = unescapeHtml(this.panel.vectorImage);
this.$store.dispatch('updateSynopticPanel', this.panel).then(() => {
this.$emit('updated', true);
}).catch(() => {
Expand Down

0 comments on commit 805b4e6

Please sign in to comment.