This file is indexed.

/usr/share/horde/ansel/js/slugcheck.js is in php-horde-ansel 3.0.5+debian0-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
/**
 */

var AnselSlugCheck = {

    // Set by calling code: text

    checkSlug: function()
    {
        var slug = $F('gallery_slug');

        // Empty slugs are always allowed.
        if (slug.length && slug != this.text) {
            HordeCore.doAction('checkSlug', {
                slug: slug
            }, {
                callback: this.checkSlugCallback.bind(this)
            });
        } else {
            this.checkSlugCallback(true);
        }
    },

    checkSlugCallback: function(r)
    {
        var slugFlag = $('slug_flag');

        if (r) {
            slugFlag.removeClassName('problem').addClassName('success');
            $('gallery_submit').enable();
            // In case we try various slugs
            this.text = slug;
        } else {
            slugFlag.removeClassName('success').addClassName('problem');
            $('gallery_submit').disable();
        }
    },

    onDomLoad: function()
    {
        $('gallery_slug').observe('change', this.checkSlug.bind(this));
    }

};

document.observe('dom:loaded', AnselSlugCheck.onDomLoad.bind(AnselSlugCheck));