# simple-urls/112/libs/Raven/Processor/RemoveHttpBodyProcessor.php

Lasso Lite – Affiliate Link Manager &amp; Product Displays, version 112. 31 lines.

- Page: https://pluginprobe.com/plugins/simple-urls/112/code/libs/Raven/Processor/RemoveHttpBodyProcessor.php
- Raw: https://pluginprobe.com/plugins/simple-urls/112/raw/libs/Raven/Processor/RemoveHttpBodyProcessor.php
- Modified: 2022-08-02T03:33:04+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/simple-urls/112/code/libs/Raven/Processor/RemoveHttpBodyProcessor.php#L10-L20`.

```php
<?php

/*
 * This file is part of Raven.
 *
 * (c) Sentry Team
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/**
 * This processor removes all the data of the HTTP body to ensure no sensitive
 * informations are sent to the server in case the request method is POST, PUT,
 * PATCH or DELETE.
 *
 * @author Stefano Arlandini <sarlandini@alice.it>
 */
final class Raven_Processor_RemoveHttpBodyProcessor extends Raven_Processor
{
    /**
     * {@inheritdoc}
     */
    public function process(&$data)
    {
        if (isset($data['request'], $data['request']['method']) && in_array(strtoupper($data['request']['method']), array('POST', 'PUT', 'PATCH', 'DELETE'))) {
            $data['request']['data'] = self::STRING_MASK;
        }
    }
}

```
