summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-06-20 11:10:13 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-06-20 11:10:13 +0000
commit0ea3fcec397b69815975647f5e2aa5fe944a8486 (patch)
tree7979381b89d26011bcf9bdc989a40fcc2f1ed4ff /patches
parent72123183a20411a36d607d70b12d57c484394c8e (diff)
downloadgitlab-ce-0ea3fcec397b69815975647f5e2aa5fe944a8486.tar.gz
Add latest changes from gitlab-org/gitlab@15-1-stable-eev15.1.0-rc42
Diffstat (limited to 'patches')
-rw-r--r--patches/@rails+ujs+6.1.4-7.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/patches/@rails+ujs+6.1.4-7.patch b/patches/@rails+ujs+6.1.4-7.patch
new file mode 100644
index 00000000000..35669852e9f
--- /dev/null
+++ b/patches/@rails+ujs+6.1.4-7.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 2176247..1a83d48 100644
+--- a/node_modules/@rails/ujs/lib/assets/compiled/rails-ujs.js
++++ b/node_modules/@rails/ujs/lib/assets/compiled/rails-ujs.js
+@@ -265,11 +265,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(/;.+/, '');