This file is indexed.

/usr/share/tdiary/contrib/plugin/day2section.rb is in tdiary-contrib 3.2.2-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
#
# day2section.rb - tDiary plugin
#
# When a visitor accesses to day page without section anchor, navigate to first section.
#
# Copyright (c) MATSUOKA Kohei <http://www.machu.jp/>
# Distributed under the GPL
#
add_footer_proc do
	if @mode == 'day'
		<<-SCRIPT
		<script type="text/javascript">
		if(!location.hash) {
			location.replace(location.hash + "#p01");
		}
		</script>
		SCRIPT
	end
end