This file is indexed.

/usr/share/horde/ansel/lib/Report/mail.php 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
<?php
/**
 * Report by email class
 *
 * @author  Duck <duck@obala.net>
 * @package Ansel
 */
class Ansel_Report_mail extends Ansel_Report {

    /**
     * Report
     */
    function report($message, $users = array())
    {
        global $conf;

        if (empty($users)) {
            $to = $conf['report_content']['email'];
        } else {
            // we are sending a report to to the gallery owner, but fall back
            // to the admin in case the user has no email.
            $to = $this->_getUserEmail($users);
            if (empty($to)) {
                $to = $conf['report_content']['email'];
            }
        }

        $mail = new Horde_Mime_Mail(array(
            'body' => $this->getMessage($message),
            'Subject' => $this->getTitle(),
            'To' => $to,
            //FIXME: This address should be configurable
            'Sender' => 'horde-problem@' . $conf['report_content']['maildomain'],
            'From' => $this->getUserEmail()));

        return $mail->send($GLOBALS['injector']->getInstance('Horde_Mail'));
    }
}