This file is indexed.

/usr/share/php/irods/prods/src/packet/RP_ExecCmdOut.class.php is in php-irods-prods 3.3.0~beta1-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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of RP_ExecCmdOut
 *
 * @author lisa
 */
require_once(dirname(__FILE__) . "/../autoload.inc.php");

class RP_ExecCmdOut extends RODSPacket
{

    public function __construct($buf = '', $buflen = 0)
    {
        $packlets = array("buf" => $buf);
        parent::__construct("ExecCmdOut_PI", $packlets);
    }

    public function fromSXE(SimpleXMLElement $sxe)
    {
        $binbytes = "BinBytesBuf_PI";
        $name = "buf";

        if (!isset($this->packlets))
            return;

        $packlet_value = "";
        try {
            foreach ($sxe->$binbytes as $binpacket) {
                if (strlen($binpacket->$name) > 0) {
                    $decoded_value = base64_decode($binpacket->$name);
                    $packlet_value .= $decoded_value;
                }
            }

            // can't find a better way yet to get rid of the garbage on the end of the string ...
            $len = strlen($packlet_value);
            $cleaned_value = "";
            for ($i = 0; $i < $len; $i++) {
                if (ord($packlet_value{$i}) <= 0) break;
                $cleaned_value .= $packlet_value{$i};
            }

            $this->packlets[$name] = $cleaned_value;
            $this->packlets["buflen"] = $i;
        } catch (Exception $ex) {
            $this->packlets[$name] = "";
        }
    }
}

?>