Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions Evidence.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public function __construct($flowData)
}

/**
* Set a single piece of evidence by its element and value
* If a flow element can use the key then add the key value pair to the
* evidence collection
* @param string key
* @param mixed value
*/
Expand All @@ -54,6 +55,7 @@ public function set($key, $value)
foreach ($this->flowData->pipeline->flowElements as $flowElement) {
if ($flowElement->filterEvidenceKey($key)) {
$keep = true;
break;
}
}

Expand Down Expand Up @@ -109,18 +111,15 @@ public function setFromWebRequest($server = null, $cookies = null, $query = null

$key = strtolower($key);

error_log("header." . $key . ": " . $value, 0);
$evidence["header." . $key] = $value;
}
}

foreach ($cookies as $key => $value) {
error_log("cookie." . $key . ": " . $value, 0);
$evidence["cookie." . $key] = $value;
}

foreach ($query as $key => $value) {
error_log("query." . $key . ": " . $value, 0);
$evidence["query." . $key] = $value;
}

Expand Down Expand Up @@ -151,7 +150,6 @@ public function setFromWebRequest($server = null, $cookies = null, $query = null
$this->setArray($evidence);
}


/**
* Get a piece of evidence by key
* @param string key
Expand Down