This file is indexed.

/usr/share/php/Horde/Controller/Response.php is in php-horde-controller 2.0.1-3.

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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
/**
 * @category Horde
 * @package  Controller
 * @author   James Pepin <james@bluestatedigital.com>
 * @license  http://www.horde.org/licenses/bsd BSD
 */
class Horde_Controller_Response
{
    protected $_headers = array();
    protected $_body;
    protected $_requestConfiguration;

    public function __construct()
    {
    }

    public function setHeaders(array $headers)
    {
        $this->_headers = array_merge($this->_headers, $headers);
    }

    public function setHeader($name, $value)
    {
        $this->_headers[$name] = $value;
    }

    public function setContentType($contentType, $charset = 'UTF-8')
    {
        $this->setHeader('Content-Type', "$contentType; charset=$charset");
    }

    public function setBody($body)
    {
        $this->_body = $body;
    }

    public function getHeaders()
    {
        return $this->_headers;
    }

    public function getBody()
    {
        return $this->_body;
    }

    public function internalRedirect()
    {
        return $this->_requestConfiguration != null;
    }

    public function setRedirectUrl($url)
    {
        $this->_headers['Location'] = $url;
    }

    public function getRedirectConfiguration()
    {
        return $this->_requestConfiguration;
    }

    public function setRedirectConfiguration(Horde_Controller_RequestConfiguration $config)
    {
        $this->_requestConfiguration = $config;
    }
}