Skip to content
Snippets Groups Projects
Unverified Commit 003af685 authored by Sébastien Gaya's avatar Sébastien Gaya Committed by GitHub
Browse files

Merge branch 'main' into update-dependencies

parents 697f8d93 bb378252
No related branches found
No related tags found
No related merge requests found
/*global $, jQuery */
/* This allow ujs requests to automatically inject nonce */
$(function () {
'use strict';
$.ajaxSetup({
converters: {
'text script': function (text) {
jQuery.globalEval(text, { nonce: $('meta[name="csp-nonce"]').attr('content') });
return text;
}
}
});
});
\ No newline at end of file
......@@ -9,6 +9,7 @@ module Importers
end
def self.clean_string(string)
string = string.to_s
string = string.gsub(' ', ' ')
string = string.gsub('&', '&')
string = ActionView::Base.full_sanitizer.sanitize string
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment