diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-29 21:10:36 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-29 21:10:36 +0300 |
commit | 1bbd0179d7ed8fb17c0574aa74ef491e53c833a7 (patch) | |
tree | c74a9b9d8f7ad1cedb0995e10340820467a8ab6f /patches | |
parent | 4d3677a52dab1bb5c707ad493dcab8c8bca3dd8b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'patches')
-rw-r--r-- | patches/@rails+ujs+7.0.5.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/patches/@rails+ujs+7.0.5.patch b/patches/@rails+ujs+7.0.5.patch new file mode 100644 index 00000000000..65a4eb029b8 --- /dev/null +++ b/patches/@rails+ujs+7.0.5.patch @@ -0,0 +1,16 @@ +diff --git a/node_modules/@rails/ujs/lib/assets/compiled/rails-ujs.js b/node_modules/@rails/ujs/lib/assets/compiled/rails-ujs.js +index d428163..010eaa5 100644 +--- a/node_modules/@rails/ujs/lib/assets/compiled/rails-ujs.js ++++ b/node_modules/@rails/ujs/lib/assets/compiled/rails-ujs.js +@@ -281,11 +281,6 @@ Released under the MIT license + try { + response = JSON.parse(response); + } catch (error) {} +- } else if (type.match(/\b(?:java|ecma)script\b/)) { +- script = document.createElement('script'); +- script.setAttribute('nonce', cspNonce()); +- script.text = response; +- document.head.appendChild(script).parentNode.removeChild(script); + } else if (type.match(/\b(xml|html|svg)\b/)) { + parser = new DOMParser(); + type = type.replace(/;.+/, ''); |