Skip to content

Commit

Permalink
fix xss issue in query filter
Browse files Browse the repository at this point in the history
  • Loading branch information
yagebu committed Jul 23, 2022
1 parent 11e0ed3 commit dccfb6a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions frontend/src/modals/EntryContext.svelte
Expand Up @@ -35,7 +35,10 @@
<tr>
<td><a href={urlForAccount(account)}>{account}</a></td>
<td>
{@html inventory.join("<br>")}
{#each inventory as amount}
{amount}
<br />
{/each}
</td>
</tr>
{/each}
Expand All @@ -52,7 +55,10 @@
<tr>
<td><a href={urlForAccount(account)}>{account}</a></td>
<td>
{@html inventory.join("<br>")}
{#each inventory as amount}
{amount}
<br />
{/each}
</td>
</tr>
{/each}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/query/Query.svelte
Expand Up @@ -106,7 +106,7 @@
{/if}
{@html result.table}
{:else if error}
{@html error}
{error}
{/if}
</div>
</details>
Expand Down

0 comments on commit dccfb6a

Please sign in to comment.