Project

General

Profile

Feature #33383 » remove_security_fix_for_jquery_1_2.patch

Marius BĂLTEANU, 2021-01-09 12:59

View differences:

public/javascripts/application.js
1 1
/* Redmine - project management software
2 2
   Copyright (C) 2006-2020  Jean-Philippe Lang */
3 3

  
4
/* Fix for CVE-2015-9251, to be removed with JQuery >= 3.0 */
5
$.ajaxPrefilter(function (s) {
6
  if (s.crossDomain) {
7
    s.contents.script = false;
8
  }
9
});
10

  
11 4
function checkAll(id, checked) {
12 5
  $('#'+id).find('input[type=checkbox]:enabled').prop('checked', checked);
13 6
}
(4-4/4)