Skip to content

Commit 4963ae7

Browse files
authored
Merge pull request #185 from PerimeterX/dev
Dev
2 parents 8f5678f + de63078 commit 4963ae7

File tree

6 files changed

+17
-7
lines changed

6 files changed

+17
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [3.7.8] - 2022-02-03
9+
10+
### Fixed
11+
12+
- Minor index not found verbosity error fixed
13+
814
## [3.7.7] - 2022-01-11
915

1016
### Added

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# [PerimeterX](http://www.perimeterx.com) PHP SDK
88

9-
> Latest stable version: [v3.7.7](https://packagist.org/packages/perimeterx/php-sdk#3.7.7)
9+
> Latest stable version: [v3.7.8](https://packagist.org/packages/perimeterx/php-sdk#3.7.8)
1010
1111
## Table of Contents
1212

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "perimeterx/php-sdk",
33
"description": "PerimeterX SDK for PHP",
4-
"version" : "3.7.7",
4+
"version" : "3.7.8",
55
"keywords": [
66
"perimeterx",
77
"websecurity",

px_metadata.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "3.7.7",
2+
"version": "3.7.8",
33
"supported_features": [
44
"additional_activity_handler",
55
"advanced_blocking_response",
@@ -8,19 +8,21 @@
88
"block_page_js_challenge",
99
"block_page_rate_limit",
1010
"bypass_monitor_header",
11+
"client_ip_extraction",
1112
"cookie_v3",
1213
"css_ref",
1314
"custom_logo",
1415
"custom_parameters",
1516
"js_ref",
1617
"logger",
1718
"login_credentials_extraction",
19+
"mobile_support",
1820
"module_enable",
1921
"module_mode",
2022
"page_requested_activity",
2123
"pxde",
24+
"pxhd",
2225
"risk_api",
23-
"return_response",
2426
"sensitive_headers",
2527
"sensitive_routes",
2628
"vid_extraction"

src/Perimeterx.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ private function __construct(array $pxConfig = [])
9494
'max_buffer_len' => 1,
9595
'send_page_activities' => true,
9696
'send_block_activities' => true,
97-
'sdk_name' => 'PHP SDK v3.7.7',
97+
'sdk_name' => 'PHP SDK v3.7.8',
9898
'debug_mode' => false,
9999
'perimeterx_server_host' => 'https://sapi-' . strtolower($pxConfig['app_id']) . '.perimeterx.net',
100100
'captcha_script_host' => 'https://captcha.px-cdn.net',

src/PerimeterxFieldExtractorManager.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ public function extractFields() {
2424
try {
2525
$uriWithoutQuery = strtok($_SERVER['REQUEST_URI'], "?");
2626
$extractorKey = self::generateMapKey($uriWithoutQuery, $_SERVER["REQUEST_METHOD"]);
27-
$extractor = $this->extractorMap[$extractorKey];
28-
return isset($extractor) ? $extractor->extractFields() : null;
27+
if(array_key_exists($extractorKey, $this->extractorMap)) {
28+
$extractor = $this->extractorMap[$extractorKey];
29+
return $extractor->extractFields();
30+
}
2931
} catch (\Exception $e) {
3032
$this->logger->error("Exception thrown while extracting fields: " . $e->getMessage());
3133
} catch (\Error $e) {

0 commit comments

Comments
 (0)