PluginProbe
Lasso Lite – Affiliate Link Manager & Product Displays / 112
Lasso Lite – Affiliate Link Manager & Product Displays v112
158 157 155 156 154 153 152 151 150 149 148 trunk 0.9.9 104 105 106 107 108 109 110 111 112 113 114 115 All 57 releases
simple-urls / libs / Raven / Processor / RemoveCookiesProcessor.php

RemoveCookiesProcessor.php in Lasso Lite – Affiliate Link Manager & Product Displays 112, at libs/Raven/Processor/RemoveCookiesProcessor.php

36 lines 920 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /*
4 * This file is part of Raven.
5 *
6 * (c) Sentry Team
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 /**
13 * This processor removes all the cookies from the request to ensure no sensitive
14 * informations are sent to the server.
15 *
16 * @author Stefano Arlandini <sarlandini@alice.it>
17 */
18 final class Raven_Processor_RemoveCookiesProcessor extends Raven_Processor
19 {
20 /**
21 * {@inheritdoc}
22 */
23 public function process(&$data)
24 {
25 if (isset($data['request'])) {
26 if (isset($data['request']['cookies'])) {
27 $data['request']['cookies'] = self::STRING_MASK;
28 }
29
30 if (isset($data['request']['headers']) && isset($data['request']['headers']['Cookie'])) {
31 $data['request']['headers']['Cookie'] = self::STRING_MASK;
32 }
33 }
34 }
35 }
36