Commit 1b2cf39e authored by Mike Greiling's avatar Mike Greiling

Escape user input

parent 9b018302
<script> <script>
import { escape } from 'lodash';
import { import {
GlDropdown, GlDropdown,
GlDropdownDivider, GlDropdownDivider,
...@@ -74,7 +75,7 @@ export default { ...@@ -74,7 +75,7 @@ export default {
return sprintf( return sprintf(
s__('ClusterIntegration|Use %{query}'), s__('ClusterIntegration|Use %{query}'),
{ {
query: `<code>${this.searchQuery}</code>`, query: `<code>${escape(this.searchQuery)}</code>`,
}, },
false, false,
); );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment