Commit Graph

11 Commits

Author SHA1 Message Date
Rodrigo Primo
19028eee3d Stop using utf8_encode() when calling php_uname()
This was added in a37ff8d. Per the commit message, php_uname() in a
Windows server can sometimes return the string using encondings other
than ISO-8859-1 and thus utf8_encode() was added. The problem is that
utf8_encode() only converts from ISO-8859-1 to UTF-8 so it does not work
for the purpose that it was added and it was deprecated in PHP 8.2.

Removing it seems safe. If we start having problems with character
encoding in the string that we are sending to Helpscout, we can consider
other alternatives to make sure the string is always send using UTF-8.

[MAILPOET-4865]
2023-04-28 10:26:03 +02:00
John Oleksowicz
c75bc388c9 Remove unnecessary cleanup code
MAILPOET-5145
2023-04-07 12:11:12 -05:00
Rodrigo Primo
678911a8bc Fix PHPStan baseline errors in a few integration test files
[MAILPOET-4037]
2023-02-23 14:13:17 +01:00
Jan Jakes
82aeb89854 Use strict types in tests
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
David Remer
8c5222d850 Fix WordPress.Security.ValidatedSanitizedInput.InputNotSanitized and related errors
[MAILPOET-4850]
2022-11-28 22:54:13 +03:00
David Remer
1d99ff0943 Fix all is_string assertions in integration tests
[MAILPOET-4258]
2022-11-25 14:32:34 +01:00
Rodrigo Primo
d54129670d Reorganize information sent to HelpScout
We are now using the `session-data` method of the Beacon API to send
site information to HelpScout
(https://developer.helpscout.com/beacon-2/web/javascript-api/#beacon-session-data).
This method has a limit of 20 attribute-value pairs and since we had
more, it was necessary to combinte a few values under the same
attribute.

[MAILPOET-4525]
2022-08-18 15:43:12 +02:00
John Oleksowicz
c701f444ec Add transactional sending method to system info
[MAILPOET-4148]
2022-03-21 10:51:25 +01:00
Rodrigo Primo
a6e93f93ff Replace old Subscriber model with Doctrine equivalent
[MAILPOET-4009]
2022-01-19 16:16:55 +01:00
Rodrigo Primo
e95ceac77f Mask the API key when displayed in the info page
This commit adds a new flag to \MailPoet\Helpscout\Beacon::getData() to
mask half of the API key when this method is used to get information for
the System Info page. When it is used to pass information to HelpScout
nothing should change and the full key will be returned.

[MAILPOET-4009]
2022-01-19 16:16:55 +01:00
Jan Jakes
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00