This file is indexed.

/usr/share/games/flightgear/Phi/topics/Aircraft/Help.js is in flightgear-phi 2016.4.2+dfsg1-1.

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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
define([
        'jquery', 'knockout', 'text!./Help.html', 'pagedown/Markdown.Converter'
], function(jquery, ko, htmlString) {

    var converter = new Markdown.Converter();

    function ViewModel(params) {
        var self = this;

        self.helpTitle = ko.observable("");
        self.helpContent = ko.observableArray([]);
        self.description = ko.observable('');
        self.longDescription = ko.observable('');

        jquery.get('/json/sim/description', null, function(data) {
            self.description(data.value);
        });

        jquery.get('/json/sim/long-description', null, function(data) {
            self.longDescription(data.value);
        });

        jquery.get('/json/sim/help?d=2', null, function(data) {

            var helpContent = [];
            data.children.forEach(function(prop) {
                if (prop.name === 'title') {
                    self.helpTitle(prop.value);
                } else if (prop.name == 'line' ) {
                    helpContent.push({
                        type: 'line',
                        text: prop.value,
                    });
                } else if (prop.name == 'text') {
                    helpContent.push({
                        type: 'text',
                        text: converter.makeHtml(prop.value),
                    });
                } else if (prop.name == 'key') {
                    var content = {
                            type: 'key',
                            name: 'noname',
                            desc: 'nothing',
                    }
                    helpContent.push(content);
                    prop.children.forEach(function(prop) {
                        if (prop.name === 'name') {
                            content.name = prop.value;
                        } else if( prop.name == 'desc' ) {
                            content.desc = prop.value;
                        }
                    });
                }
            });
            self.helpContent(helpContent);

        });
    }

//    ViewModel.prototype.dispose = function() {
//    }

    // Return component definition
    return {
        viewModel : ViewModel,
        template : htmlString
    };
});