Skip to content

Commit

Permalink
Properly handle backslashes in example queries
Browse files Browse the repository at this point in the history
So far, a `\\` in an example query turned into a `\` when selecting the
query. This broke several of the example queries. It is now fixed.
  • Loading branch information
Hannah Bast committed Oct 28, 2024
1 parent 9fbd2e1 commit 3a7e869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/templates/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
var MIXED_MODE_TIMEOUT = {{ backend.mixedModeTimeout }};
var examples = [];
{% for example in examples %}
examples.push(`{{ example.query|safe }}`);
examples.push(`{{ example.query|addslashes|safe }}`);
{% endfor %}
var MAP_VIEW_BASE_URL = "{{ backend.mapViewBaseURL }}";
</script>
Expand Down

0 comments on commit 3a7e869

Please sign in to comment.