Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
da37f4c8
Unverified
Commit
da37f4c8
authored
Mar 10, 2020
by
Torkel Ödegaard
Committed by
GitHub
Mar 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XSS: Fixed history XSS issue (#22680)
parent
cd012bdf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
pkg/components/dashdiffs/formatter_basic.go
+4
-4
pkg/components/dashdiffs/formatter_json.go
+1
-1
No files found.
pkg/components/dashdiffs/formatter_basic.go
View file @
da37f4c8
...
@@ -339,11 +339,11 @@ var (
...
@@ -339,11 +339,11 @@ var (
<!-- Overview -->
<!-- Overview -->
{{ if .Old }}
{{ if .Old }}
<div class="diff-label">{{ .Old }}</div>
<div class="diff-label"
ng-non-bindable
>{{ .Old }}</div>
<i class="diff-arrow fa fa-long-arrow-right"></i>
<i class="diff-arrow fa fa-long-arrow-right"></i>
{{ end }}
{{ end }}
{{ if .New }}
{{ if .New }}
<div class="diff-label">{{ .New }}</div>
<div class="diff-label"
ng-non-bindable
>{{ .New }}</div>
{{ end }}
{{ end }}
{{ if .LineStart }}
{{ if .LineStart }}
...
@@ -380,11 +380,11 @@ var (
...
@@ -380,11 +380,11 @@ var (
<div class="diff-change-item">
<div class="diff-change-item">
{{ if .Old }}
{{ if .Old }}
<div class="diff-label">{{ .Old }}</div>
<div class="diff-label"
ng-non-bindable
>{{ .Old }}</div>
<i class="diff-arrow fa fa-long-arrow-right"></i>
<i class="diff-arrow fa fa-long-arrow-right"></i>
{{ end }}
{{ end }}
{{ if .New }}
{{ if .New }}
<div class="diff-label">{{ .New }}</div>
<div class="diff-label"
ng-non-bindable
>{{ .New }}</div>
{{ end }}
{{ end }}
</div>
</div>
...
...
pkg/components/dashdiffs/formatter_json.go
View file @
da37f4c8
...
@@ -59,7 +59,7 @@ var (
...
@@ -59,7 +59,7 @@ var (
<span class="diff-line-number">
<span class="diff-line-number">
{{if .RightLine }}{{ .RightLine }}{{ end }}
{{if .RightLine }}{{ .RightLine }}{{ end }}
</span>
</span>
<span class="diff-value diff-indent-{{ .Indent }}" title="{{ .Text }}">
<span class="diff-value diff-indent-{{ .Indent }}" title="{{ .Text }}"
ng-non-bindable
>
{{ .Text }}
{{ .Text }}
</span>
</span>
<span class="diff-line-icon">{{ ctos .Change }}</span>
<span class="diff-line-icon">{{ ctos .Change }}</span>
...
...
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