This file is indexed.

/usr/share/linkchecker/lconline/check.js is in linkchecker-web 9.3-1+deb8u1.

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
// check url validity
function isValid (thisForm) {
    if (thisForm.url.value=="" || thisForm.url.value=="http://") {
        alert(gettext("Empty URL was given."));
        thisForm.url.select();
        thisForm.url.focus();
        return false;
    }
    if (!checkSyntax(thisForm.url.value)) {
        alert(gettext("Invalid URL was given."));
        thisForm.url.select();
        thisForm.url.focus();
        return false;
    }
    return true;
}

// check url syntax
function checkSyntax (url) {
    var syntax = /^https?:\/\/[-_a-zA-Z0-9.\/=%?~]+$/;
    return syntax.test(url);
}