Explorar el Código

Fix for CVE-2015-9251 in JQuery 1.11.1 (#26857).

Patch by Gregor Schmidt.

git-svn-id: http://svn.redmine.org/redmine/trunk@17272 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.0.0
Jean-Philippe Lang hace 6 años
padre
commit
70d0a7147c
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7
    0
      public/javascripts/application.js

+ 7
- 0
public/javascripts/application.js Ver fichero

@@ -1,6 +1,13 @@
/* Redmine - project management software
Copyright (C) 2006-2017 Jean-Philippe Lang */

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

function checkAll(id, checked) {
$('#'+id).find('input[type=checkbox]:enabled').prop('checked', checked);
}

Cargando…
Cancelar
Guardar