This file is indexed.

/usr/share/tdiary/contrib/plugin/prettify.rb is in tdiary-contrib 5.0.8-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
# prettify.rb

if /\A(?:latest|day|month|nyear)\z/ =~ @mode then
	add_header_proc do
		<<-HTML
		<script type="text/javascript" src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>
		<script type="text/javascript"><!--
			var initPrettyPrint = function() {
				var pres = document.querySelectorAll("div.body > div.section > pre");
				Array.prototype.slice.call(pres).forEach(function(pre) {
					pre.setAttribute("class", "prettyprint");
				});
				PR.prettyPrint();
			};
			if(window.addEventListener){
				window.addEventListener("load", initPrettyPrint, false);
			}else if(window.attachEvent){
				window.attachEvent("onload", initPrettyPrint);
			}else{
				window.onload=initPrettyPrint;
			}
		// --></script>
		HTML
	end
end