diff --git a/vendor/composer/autoload_psr4.php b/vendor/composer/autoload_psr4.php index 12f5322..b604398 100644 --- a/vendor/composer/autoload_psr4.php +++ b/vendor/composer/autoload_psr4.php @@ -10,7 +10,7 @@ 'Raygun4php\\Tests\\' => array($vendorDir . '/mindscape/raygun4php/tests'), 'Raygun4php\\' => array($vendorDir . '/mindscape/raygun4php/src/Raygun4php'), 'Psr\\Log\\' => array($vendorDir . '/psr/log/Psr/Log'), - 'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src', $vendorDir . '/psr/http-factory/src'), + 'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-factory/src', $vendorDir . '/psr/http-message/src'), 'Psr\\Http\\Client\\' => array($vendorDir . '/psr/http-client/src'), 'Monolog\\' => array($vendorDir . '/monolog/monolog/src/Monolog'), 'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'), diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 22d6573..22b29fe 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -57,8 +57,8 @@ class ComposerStaticInit33571e35834a0e12729a0f8e938f5a42 ), 'Psr\\Http\\Message\\' => array ( - 0 => __DIR__ . '/..' . '/psr/http-message/src', - 1 => __DIR__ . '/..' . '/psr/http-factory/src', + 0 => __DIR__ . '/..' . '/psr/http-factory/src', + 1 => __DIR__ . '/..' . '/psr/http-message/src', ), 'Psr\\Http\\Client\\' => array ( diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index cd3786f..2cc7818 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -342,17 +342,17 @@ }, { "name": "mindscape/raygun4php", - "version": "v2.3.0", - "version_normalized": "2.3.0.0", + "version": "v2.3.1", + "version_normalized": "2.3.1.0", "source": { "type": "git", "url": "https://github.com/MindscapeHQ/raygun4php.git", - "reference": "a479ce6be7f31f224893055884afc7b8153191fd" + "reference": "f2943cc244ddf7bbf6b3a291ee4ae033ab1e1bf0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/MindscapeHQ/raygun4php/zipball/a479ce6be7f31f224893055884afc7b8153191fd", - "reference": "a479ce6be7f31f224893055884afc7b8153191fd", + "url": "https://api.github.com/repos/MindscapeHQ/raygun4php/zipball/f2943cc244ddf7bbf6b3a291ee4ae033ab1e1bf0", + "reference": "f2943cc244ddf7bbf6b3a291ee4ae033ab1e1bf0", "shasum": "" }, "require": { @@ -369,7 +369,7 @@ "suggest": { "ext-curl": "*" }, - "time": "2022-09-07T04:14:24+00:00", + "time": "2023-02-22T02:17:58+00:00", "type": "library", "extra": { "branch-alias": { @@ -404,7 +404,7 @@ ], "support": { "issues": "https://github.com/MindscapeHQ/raygun4php/issues", - "source": "https://github.com/MindscapeHQ/raygun4php/tree/v2.3.0" + "source": "https://github.com/MindscapeHQ/raygun4php/tree/v2.3.1" }, "install-path": "../mindscape/raygun4php" }, diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 057f232..3cc5dbf 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -3,7 +3,7 @@ 'name' => 'raygun/raygun4wordpress', 'pretty_version' => 'dev-master', 'version' => 'dev-master', - 'reference' => '37a73c1bcc2b368c2392a87323780ad1c9266967', + 'reference' => '28cbfcbef7909c16f5a3e2a4e2f954fd4ecfce9c', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -38,9 +38,9 @@ 'dev_requirement' => false, ), 'mindscape/raygun4php' => array( - 'pretty_version' => 'v2.3.0', - 'version' => '2.3.0.0', - 'reference' => 'a479ce6be7f31f224893055884afc7b8153191fd', + 'pretty_version' => 'v2.3.1', + 'version' => '2.3.1.0', + 'reference' => 'f2943cc244ddf7bbf6b3a291ee4ae033ab1e1bf0', 'type' => 'library', 'install_path' => __DIR__ . '/../mindscape/raygun4php', 'aliases' => array(), @@ -127,7 +127,7 @@ 'raygun/raygun4wordpress' => array( 'pretty_version' => 'dev-master', 'version' => 'dev-master', - 'reference' => '37a73c1bcc2b368c2392a87323780ad1c9266967', + 'reference' => '28cbfcbef7909c16f5a3e2a4e2f954fd4ecfce9c', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), diff --git a/vendor/mindscape/raygun4php/README.md b/vendor/mindscape/raygun4php/README.md index 7880778..56e3c85 100644 --- a/vendor/mindscape/raygun4php/README.md +++ b/vendor/mindscape/raygun4php/README.md @@ -342,6 +342,8 @@ function ($errno, $errstr, $errfile, $errline) use ($raygunClient) { See the [Error Control Operators section on PHP.net](http://php.net/manual/en/language.operators.errorcontrol.php) for more information. ## Changelog +- 2.3.1: Use iconv to convert from ISO-8859-1 instead of utf8_encode +- 2.3.0: Support newer versions of psr/log - 2.2.1: SetUser method now supports numeric data types for 'user' parameter - 2.2.0: Capture the file and line number where the exception itself is thrown - 2.1.1: Fix namespace in Uuid library to prevent composer errors with mixed case package names diff --git a/vendor/mindscape/raygun4php/src/Raygun4php/RaygunClientMessage.php b/vendor/mindscape/raygun4php/src/Raygun4php/RaygunClientMessage.php index 2c7857d..5fa1a23 100644 --- a/vendor/mindscape/raygun4php/src/Raygun4php/RaygunClientMessage.php +++ b/vendor/mindscape/raygun4php/src/Raygun4php/RaygunClientMessage.php @@ -11,7 +11,7 @@ class RaygunClientMessage public function __construct() { $this->Name = "Raygun4php"; - $this->Version = "2.2.1"; + $this->Version = "2.3.1"; $this->ClientUrl = "https://github.com/MindscapeHQ/raygun4php"; } } diff --git a/vendor/mindscape/raygun4php/src/Raygun4php/RaygunRequestMessage.php b/vendor/mindscape/raygun4php/src/Raygun4php/RaygunRequestMessage.php index a6f6fc0..2708e61 100644 --- a/vendor/mindscape/raygun4php/src/Raygun4php/RaygunRequestMessage.php +++ b/vendor/mindscape/raygun4php/src/Raygun4php/RaygunRequestMessage.php @@ -42,7 +42,7 @@ public function __construct() $utf8_convert_server = function ($value) use (&$utf8_convert_server) { return is_array($value) ? array_map($utf8_convert_server, $value) : - iconv('UTF-8', 'UTF-8', utf8_encode($value)); + iconv('ISO-8859-1', 'UTF-8', $value); }; $this->Form = array_map($utf8_convert, $_POST); diff --git a/vendor/mindscape/raygun4php/tests/RaygunClientTest.php b/vendor/mindscape/raygun4php/tests/RaygunClientTest.php index 8923e43..18089aa 100644 --- a/vendor/mindscape/raygun4php/tests/RaygunClientTest.php +++ b/vendor/mindscape/raygun4php/tests/RaygunClientTest.php @@ -277,4 +277,19 @@ public function testValidateMessageJsonInTransportObj() $schemaValidator->validate($data, $this->jsonSchema); $this->assertTrue($schemaValidator->isValid()); } + + /** + * @backupGlobals enabled + */ + public function testServerUtf8Conversion() + { + $_SERVER = [ + 'a' => 'hello', + 'b' => "\xc0\xde", + ]; + $requestMessage = new RaygunRequestMessage(); + + $this->assertSame('hello', $requestMessage->Data['a']); + $this->assertSame('ÀÞ', $requestMessage->Data['b']); + } }