File tree Expand file tree Collapse file tree 6 files changed +17
-7
lines changed
Expand file tree Collapse file tree 6 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ )
66and 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 11{
2- "version" : " 3.7.7 " ,
2+ "version" : " 3.7.8 " ,
33 "supported_features" : [
44 " additional_activity_handler" ,
55 " advanced_blocking_response" ,
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"
Original file line number Diff line number Diff 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 ' ,
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments