Skip to content

Commit

Permalink
chore(add-ons): rename javascript template file
Browse files Browse the repository at this point in the history
It confuses scanners as they try to parse it as javascript.
  • Loading branch information
nijel committed May 3, 2024
1 parent f4302b3 commit a4974b1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ jobs:

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
setup-python-dependencies: false

- name: Autobuild
uses: github/codeql-action/autobuild@v3
Expand Down
2 changes: 1 addition & 1 deletion weblate/addons/cdn.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def post_commit(self, component) -> None:
# sure the template is valid JavaScript code as well
handle.write(
render_to_string(
"addons/js/weblate.js",
"addons/js/weblate.js.template",
{
# `mark_safe(json.dumps(` is NOT safe in HTML files. Only JS.
# See `django.utils.html.json_script`
Expand Down
File renamed without changes.

0 comments on commit a4974b1

Please sign in to comment.