This file is indexed.

/usr/share/horde/whups/lib/Form/Type/whupsemail.php is in php-horde-whups 3.0.9-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
<?php
/**
 * @package Horde_Form
 */
class Whups_Form_Type_whupsemail extends Horde_Form_Type_email
{

    /**
     * @param string $email An individual email address to validate.
     *
     * @return boolean
     */
    function validateEmailAddress($email)
    {
        $rfc = new Horde_Mail_Rfc822();
        try {
            $rfc->parseAddressList($email, array('validate' => true));
        } catch (Horde_Mail_Exception $e) {
            return false;
        }

        return true;
    }

}