This file is indexed.

/usr/share/shinken/htdocs/js/shinken-deptree.js is in shinken-module-broker-webui 1.4-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
/* The business rules toggle buttons*/
function toggleBusinessElt(e) {
    //alert('Toggle'+e);
    var toc = document.getElementById('business-parents-'+e);
    var imgLink = document.getElementById('business-parents-img-'+e);

    img_src = '/static/images/';

    if (toc && toc.style.display == 'none') {
	toc.style.display = 'block';
	if (imgLink != null){
	    imgLink.src = img_src+'reduce.png';
	}
    } else {
	toc.style.display = 'none';
	if (imgLink != null){
	    imgLink.src = img_src+'expand.png';
	}
    }
}