Tidio Live Chat - Version 5.3.0

Version Description

  • Security update (prevent printing the real path of webroot on misconfigured servers)
Download this release

Release Info

Developer kkopaczyktidio
Plugin Icon 128x128 Tidio Live Chat
Version 5.3.0
Comparing to
See all releases

Code changes from version 5.2.0 to 5.3.0

TidioDotEnv.php CHANGED
@@ -1,5 +1,9 @@
1
  <?php
2
 
 
 
 
 
3
  class TidioDotEnv
4
  {
5
  const ENV_FILENAME = '.env';
1
  <?php
2
 
3
+ if (!defined('WPINC')) {
4
+ die('File loaded directly. Exiting.');
5
+ }
6
+
7
  class TidioDotEnv
8
  {
9
  const ENV_FILENAME = '.env';
config.php CHANGED
@@ -1,5 +1,9 @@
1
  <?php
2
 
 
 
 
 
3
  require_once __DIR__ . '/TidioDotEnv.php';
4
 
5
  (new TidioDotEnv(__DIR__))->load();
1
  <?php
2
 
3
+ if (!defined('WPINC')) {
4
+ die('File loaded directly. Exiting.');
5
+ }
6
+
7
  require_once __DIR__ . '/TidioDotEnv.php';
8
 
9
  (new TidioDotEnv(__DIR__))->load();
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: free live chat, live chat, chat, chatbot, livechat, tidio, widget, zendesk
4
  Requires at least: 4.7
5
  Tested up to: 6.0
6
  Requires PHP: 5.6
7
- Stable tag: 5.2.0
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -198,6 +198,10 @@ Currently, Tidio is available in English and French. Other languages are in deve
198
 
199
  == Changelog ==
200
 
 
 
 
 
201
  = 5.2.0 =
202
 
203
  - Add composer with autoloader
4
  Requires at least: 4.7
5
  Tested up to: 6.0
6
  Requires PHP: 5.6
7
+ Stable tag: 5.3.0
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
198
 
199
  == Changelog ==
200
 
201
+ = 5.3.0 =
202
+
203
+ - Security update (prevent printing the real path of webroot on misconfigured servers)
204
+
205
  = 5.2.0 =
206
 
207
  - Add composer with autoloader
src/Admin/AdminActionLink.php CHANGED
@@ -2,6 +2,10 @@
2
 
3
  namespace TidioLiveChat\Admin;
4
 
 
 
 
 
5
  use TidioLiveChat\IntegrationState;
6
  use TidioLiveChat\TidioLiveChat;
7
  use TidioLiveChat\Translation\I18n;
2
 
3
  namespace TidioLiveChat\Admin;
4
 
5
+ if (!defined('WPINC')) {
6
+ die('File loaded directly. Exiting.');
7
+ }
8
+
9
  use TidioLiveChat\IntegrationState;
10
  use TidioLiveChat\TidioLiveChat;
11
  use TidioLiveChat\Translation\I18n;
src/Admin/AdminController.php CHANGED
@@ -2,6 +2,10 @@
2
 
3
  namespace TidioLiveChat\Admin;
4
 
 
 
 
 
5
  use TidioLiveChat\Sdk\Api\Exception\TidioApiException;
6
  use TidioLiveChat\Sdk\IntegrationFacade;
7
  use TidioLiveChat\IntegrationState;
2
 
3
  namespace TidioLiveChat\Admin;
4
 
5
+ if (!defined('WPINC')) {
6
+ die('File loaded directly. Exiting.');
7
+ }
8
+
9
  use TidioLiveChat\Sdk\Api\Exception\TidioApiException;
10
  use TidioLiveChat\Sdk\IntegrationFacade;
11
  use TidioLiveChat\IntegrationState;
src/Admin/AdminDashboard.php CHANGED
@@ -2,6 +2,10 @@
2
 
3
  namespace TidioLiveChat\Admin;
4
 
 
 
 
 
5
  use TidioLiveChat\IntegrationState;
6
  use TidioLiveChat\TidioLiveChat;
7
  use WP_Admin_Bar;
2
 
3
  namespace TidioLiveChat\Admin;
4
 
5
+ if (!defined('WPINC')) {
6
+ die('File loaded directly. Exiting.');
7
+ }
8
+
9
  use TidioLiveChat\IntegrationState;
10
  use TidioLiveChat\TidioLiveChat;
11
  use WP_Admin_Bar;
src/Admin/AdminNotice.php CHANGED
@@ -2,6 +2,10 @@
2
 
3
  namespace TidioLiveChat\Admin;
4
 
 
 
 
 
5
  use TidioLiveChat\Translation\ErrorTranslator;
6
  use TidioLiveChat\Utils\QueryParameters;
7
 
2
 
3
  namespace TidioLiveChat\Admin;
4
 
5
+ if (!defined('WPINC')) {
6
+ die('File loaded directly. Exiting.');
7
+ }
8
+
9
  use TidioLiveChat\Translation\ErrorTranslator;
10
  use TidioLiveChat\Utils\QueryParameters;
11
 
src/Admin/AdminRouting.php CHANGED
@@ -2,6 +2,10 @@
2
 
3
  namespace TidioLiveChat\Admin;
4
 
 
 
 
 
5
  class AdminRouting
6
  {
7
  const CLEAR_ACCOUNT_DATA_ACTION = 'tidio-live-chat-clear-account-data';
2
 
3
  namespace TidioLiveChat\Admin;
4
 
5
+ if (!defined('WPINC')) {
6
+ die('File loaded directly. Exiting.');
7
+ }
8
+
9
  class AdminRouting
10
  {
11
  const CLEAR_ACCOUNT_DATA_ACTION = 'tidio-live-chat-clear-account-data';
src/Admin/IframeSetup.php CHANGED
@@ -2,6 +2,10 @@
2
 
3
  namespace TidioLiveChat\Admin;
4
 
 
 
 
 
5
  use Exception;
6
  use TidioLiveChat\IntegrationState;
7
  use TidioLiveChat\Config;
2
 
3
  namespace TidioLiveChat\Admin;
4
 
5
+ if (!defined('WPINC')) {
6
+ die('File loaded directly. Exiting.');
7
+ }
8
+
9
  use Exception;
10
  use TidioLiveChat\IntegrationState;
11
  use TidioLiveChat\Config;
src/Config.php CHANGED
@@ -2,6 +2,10 @@
2
 
3
  namespace TidioLiveChat;
4
 
 
 
 
 
5
  final class Config
6
  {
7
  /**
2
 
3
  namespace TidioLiveChat;
4
 
5
+ if (!defined('WPINC')) {
6
+ die('File loaded directly. Exiting.');
7
+ }
8
+
9
  final class Config
10
  {
11
  /**
src/IntegrationState.php CHANGED
@@ -2,6 +2,10 @@
2
 
3
  namespace TidioLiveChat;
4
 
 
 
 
 
5
  use TidioLiveChat\Sdk\Encryption\Service\OpenSslEncryptionService;
6
 
7
  class IntegrationState
2
 
3
  namespace TidioLiveChat;
4
 
5
+ if (!defined('WPINC')) {
6
+ die('File loaded directly. Exiting.');
7
+ }
8
+
9
  use TidioLiveChat\Sdk\Encryption\Service\OpenSslEncryptionService;
10
 
11
  class IntegrationState
src/Sdk/Api/Client/CurlTidioApiClient.php CHANGED
@@ -2,6 +2,10 @@
2
 
3
  namespace TidioLiveChat\Sdk\Api\Client;
4
 
 
 
 
 
5
  use TidioLiveChat\Sdk\Api\Exception\TidioApiException;
6
  use TidioLiveChat\Sdk\Api\TidioApiClient;
7
  use TidioLiveChat\Config;
2
 
3
  namespace TidioLiveChat\Sdk\Api\Client;
4
 
5
+ if (!defined('WPINC')) {
6
+ die('File loaded directly. Exiting.');
7
+ }
8
+
9
  use TidioLiveChat\Sdk\Api\Exception\TidioApiException;
10
  use TidioLiveChat\Sdk\Api\TidioApiClient;
11
  use TidioLiveChat\Config;
src/Sdk/Api/Client/FileGetContentsTidioApiClient.php CHANGED
@@ -2,6 +2,10 @@
2
 
3
  namespace TidioLiveChat\Sdk\Api\Client;
4
 
 
 
 
 
5
  use TidioLiveChat\Sdk\Api\Exception\TidioApiException;
6
  use TidioLiveChat\Sdk\Api\TidioApiClient;
7
  use TidioLiveChat\Config;
2
 
3
  namespace TidioLiveChat\Sdk\Api\Client;
4
 
5
+ if (!defined('WPINC')) {
6
+ die('File loaded directly. Exiting.');
7
+ }
8
+
9
  use TidioLiveChat\Sdk\Api\Exception\TidioApiException;
10
  use TidioLiveChat\Sdk\Api\TidioApiClient;
11
  use TidioLiveChat\Config;
src/Sdk/Api/Client/TidioApiClientFactory.php CHANGED
@@ -2,6 +2,10 @@
2
 
3
  namespace TidioLiveChat\Sdk\Api\Client;
4
 
 
 
 
 
5
  use TidioLiveChat\Sdk\Api\TidioApiClient;
6
 
7
  class TidioApiClientFactory
2
 
3
  namespace TidioLiveChat\Sdk\Api\Client;
4
 
5
+ if (!defined('WPINC')) {
6
+ die('File loaded directly. Exiting.');
7
+ }
8
+
9
  use TidioLiveChat\Sdk\Api\TidioApiClient;
10
 
11
  class TidioApiClientFactory
src/Sdk/Api/Exception/TidioApiException.php CHANGED
@@ -2,6 +2,10 @@
2
 
3
  namespace TidioLiveChat\Sdk\Api\Exception;
4
 
 
 
 
 
5
  class TidioApiException extends \Exception
6
  {
7
  const UNAUTHORIZED_ERROR_CODE = 'unauthorized';
2
 
3
  namespace TidioLiveChat\Sdk\Api\Exception;
4
 
5
+ if (!defined('WPINC')) {
6
+ die('File loaded directly. Exiting.');
7
+ }
8
+
9
  class TidioApiException extends \Exception
10
  {
11
  const UNAUTHORIZED_ERROR_CODE = 'unauthorized';
src/Sdk/Api/TidioApiClient.php CHANGED
@@ -2,6 +2,10 @@
2
 
3
  namespace TidioLiveChat\Sdk\Api;
4
 
 
 
 
 
5
  use TidioLiveChat\Sdk\Api\Exception\TidioApiException;
6
 
7
  interface TidioApiClient
2
 
3
  namespace TidioLiveChat\Sdk\Api;
4
 
5
+ if (!defined('WPINC')) {
6
+ die('File loaded directly. Exiting.');
7
+ }
8
+
9
  use TidioLiveChat\Sdk\Api\Exception\TidioApiException;
10
 
11
  interface TidioApiClient
src/Sdk/Encryption/EncryptionService.php CHANGED
@@ -2,6 +2,10 @@
2
 
3
  namespace TidioLiveChat\Sdk\Encryption;
4
 
 
 
 
 
5
  use TidioLiveChat\Sdk\Encryption\Exception\DecryptionFailedException;
6
 
7
  interface EncryptionService
2
 
3
  namespace TidioLiveChat\Sdk\Encryption;
4
 
5
+ if (!defined('WPINC')) {
6
+ die('File loaded directly. Exiting.');
7
+ }
8
+
9
  use TidioLiveChat\Sdk\Encryption\Exception\DecryptionFailedException;
10
 
11
  interface EncryptionService
src/Sdk/Encryption/Exception/DecryptionFailedException.php CHANGED
@@ -2,6 +2,10 @@
2
 
3
  namespace TidioLiveChat\Sdk\Encryption\Exception;
4
 
 
 
 
 
5
  class DecryptionFailedException extends \Exception
6
  {
7
  const INVALID_HASH_ERROR_CODE = 'invalid_hash';
2
 
3
  namespace TidioLiveChat\Sdk\Encryption\Exception;
4
 
5
+ if (!defined('WPINC')) {
6
+ die('File loaded directly. Exiting.');
7
+ }
8
+
9
  class DecryptionFailedException extends \Exception
10
  {
11
  const INVALID_HASH_ERROR_CODE = 'invalid_hash';
src/Sdk/Encryption/Service/EncryptionServiceFactory.php CHANGED
@@ -2,6 +2,10 @@
2
 
3
  namespace TidioLiveChat\Sdk\Encryption\Service;
4
 
 
 
 
 
5
  class EncryptionServiceFactory
6
  {
7
  public function create()
2
 
3
  namespace TidioLiveChat\Sdk\Encryption\Service;
4
 
5
+ if (!defined('WPINC')) {
6
+ die('File loaded directly. Exiting.');
7
+ }
8
+
9
  class EncryptionServiceFactory
10
  {
11
  public function create()
src/Sdk/Encryption/Service/OpenSslEncryptionService.php CHANGED
@@ -2,6 +2,10 @@
2
 
3
  namespace TidioLiveChat\Sdk\Encryption\Service;
4
 
 
 
 
 
5
  use TidioLiveChat\Sdk\Encryption\Exception\DecryptionFailedException;
6
  use TidioLiveChat\Sdk\Encryption\EncryptionService;
7
 
2
 
3
  namespace TidioLiveChat\Sdk\Encryption\Service;
4
 
5
+ if (!defined('WPINC')) {
6
+ die('File loaded directly. Exiting.');
7
+ }
8
+
9
  use TidioLiveChat\Sdk\Encryption\Exception\DecryptionFailedException;
10
  use TidioLiveChat\Sdk\Encryption\EncryptionService;
11
 
src/Sdk/Encryption/Service/PlainTextEncryptionService.php CHANGED
@@ -2,6 +2,10 @@
2
 
3
  namespace TidioLiveChat\Sdk\Encryption\Service;
4
 
 
 
 
 
5
  use TidioLiveChat\Sdk\Encryption\EncryptionService;
6
 
7
  class PlainTextEncryptionService implements EncryptionService
2
 
3
  namespace TidioLiveChat\Sdk\Encryption\Service;
4
 
5
+ if (!defined('WPINC')) {
6
+ die('File loaded directly. Exiting.');
7
+ }
8
+
9
  use TidioLiveChat\Sdk\Encryption\EncryptionService;
10
 
11
  class PlainTextEncryptionService implements EncryptionService
src/Sdk/IntegrationFacade.php CHANGED
@@ -2,6 +2,10 @@
2
 
3
  namespace TidioLiveChat\Sdk;
4
 
 
 
 
 
5
  use TidioLiveChat\Sdk\Api\Client\TidioApiClientFactory;
6
  use TidioLiveChat\Sdk\Api\Exception\TidioApiException;
7
 
2
 
3
  namespace TidioLiveChat\Sdk;
4
 
5
+ if (!defined('WPINC')) {
6
+ die('File loaded directly. Exiting.');
7
+ }
8
+
9
  use TidioLiveChat\Sdk\Api\Client\TidioApiClientFactory;
10
  use TidioLiveChat\Sdk\Api\Exception\TidioApiException;
11
 
src/TidioLiveChat.php CHANGED
@@ -2,6 +2,10 @@
2
 
3
  namespace TidioLiveChat;
4
 
 
 
 
 
5
  use TidioLiveChat\Admin\AdminActionLink;
6
  use TidioLiveChat\Admin\AdminController;
7
  use TidioLiveChat\Admin\AdminDashboard;
2
 
3
  namespace TidioLiveChat;
4
 
5
+ if (!defined('WPINC')) {
6
+ die('File loaded directly. Exiting.');
7
+ }
8
+
9
  use TidioLiveChat\Admin\AdminActionLink;
10
  use TidioLiveChat\Admin\AdminController;
11
  use TidioLiveChat\Admin\AdminDashboard;
src/Translation/ErrorTranslator.php CHANGED
@@ -2,6 +2,10 @@
2
 
3
  namespace TidioLiveChat\Translation;
4
 
 
 
 
 
5
  class ErrorTranslator
6
  {
7
  const ERROR_CODE_FALLBACK_MESSAGE = 'The integration process has been interrupted. An error has occurred (%s). Please try again later or contact our support team.';
2
 
3
  namespace TidioLiveChat\Translation;
4
 
5
+ if (!defined('WPINC')) {
6
+ die('File loaded directly. Exiting.');
7
+ }
8
+
9
  class ErrorTranslator
10
  {
11
  const ERROR_CODE_FALLBACK_MESSAGE = 'The integration process has been interrupted. An error has occurred (%s). Please try again later or contact our support team.';
src/Translation/I18n.php CHANGED
@@ -2,6 +2,10 @@
2
 
3
  namespace TidioLiveChat\Translation;
4
 
 
 
 
 
5
  use TidioLiveChat\TidioLiveChat;
6
 
7
  class I18n
2
 
3
  namespace TidioLiveChat\Translation;
4
 
5
+ if (!defined('WPINC')) {
6
+ die('File loaded directly. Exiting.');
7
+ }
8
+
9
  use TidioLiveChat\TidioLiveChat;
10
 
11
  class I18n
src/Translation/TranslationLoader.php CHANGED
@@ -2,6 +2,10 @@
2
 
3
  namespace TidioLiveChat\Translation;
4
 
 
 
 
 
5
  use TidioLiveChat\TidioLiveChat;
6
 
7
  class TranslationLoader
2
 
3
  namespace TidioLiveChat\Translation;
4
 
5
+ if (!defined('WPINC')) {
6
+ die('File loaded directly. Exiting.');
7
+ }
8
+
9
  use TidioLiveChat\TidioLiveChat;
10
 
11
  class TranslationLoader
src/Utils/QueryParameters.php CHANGED
@@ -2,6 +2,10 @@
2
 
3
  namespace TidioLiveChat\Utils;
4
 
 
 
 
 
5
  class QueryParameters
6
  {
7
  /**
2
 
3
  namespace TidioLiveChat\Utils;
4
 
5
+ if (!defined('WPINC')) {
6
+ die('File loaded directly. Exiting.');
7
+ }
8
+
9
  class QueryParameters
10
  {
11
  /**
src/Widget/WidgetLoader.php CHANGED
@@ -2,6 +2,10 @@
2
 
3
  namespace TidioLiveChat\Widget;
4
 
 
 
 
 
5
  use TidioLiveChat\IntegrationState;
6
  use TidioLiveChat\TidioLiveChat;
7
  use TidioLiveChat\Config;
2
 
3
  namespace TidioLiveChat\Widget;
4
 
5
+ if (!defined('WPINC')) {
6
+ die('File loaded directly. Exiting.');
7
+ }
8
+
9
  use TidioLiveChat\IntegrationState;
10
  use TidioLiveChat\TidioLiveChat;
11
  use TidioLiveChat\Config;
tidio-elements.php CHANGED
@@ -1,10 +1,14 @@
1
  <?php
2
 
 
 
 
 
3
  /**
4
  * Plugin Name: Tidio Chat
5
  * Plugin URI: http://www.tidio.com
6
  * Description: Tidio Live Chat - live chat boosted with chatbots for your online business. Integrates with your website in less than 20 seconds.
7
- * Version: 5.2.0
8
  * Author: Tidio Ltd.
9
  * Author URI: http://www.tidio.com
10
  * Text Domain: tidio-live-chat
@@ -12,7 +16,7 @@
12
  * License: GPL2
13
  */
14
 
15
- define('TIDIOCHAT_VERSION', '5.2.0');
16
  define('AFFILIATE_CONFIG_FILE_PATH', get_template_directory() . '/tidio_affiliate_ref_id.txt');
17
 
18
  require_once plugin_dir_path(__FILE__) . 'vendor/autoload.php';
1
  <?php
2
 
3
+ if (!defined('WPINC')) {
4
+ die('File loaded directly. Exiting.');
5
+ }
6
+
7
  /**
8
  * Plugin Name: Tidio Chat
9
  * Plugin URI: http://www.tidio.com
10
  * Description: Tidio Live Chat - live chat boosted with chatbots for your online business. Integrates with your website in less than 20 seconds.
11
+ * Version: 5.3.0
12
  * Author: Tidio Ltd.
13
  * Author URI: http://www.tidio.com
14
  * Text Domain: tidio-live-chat
16
  * License: GPL2
17
  */
18
 
19
+ define('TIDIOCHAT_VERSION', '5.3.0');
20
  define('AFFILIATE_CONFIG_FILE_PATH', get_template_directory() . '/tidio_affiliate_ref_id.txt');
21
 
22
  require_once plugin_dir_path(__FILE__) . 'vendor/autoload.php';
vendor/composer/InstalledVersions.php CHANGED
@@ -25,24 +25,24 @@ class InstalledVersions
25
  private static $installed = array (
26
  'root' =>
27
  array (
28
- 'pretty_version' => '5.2.0',
29
- 'version' => '5.2.0.0',
30
  'aliases' =>
31
  array (
32
  ),
33
- 'reference' => 'acc1e6a3c2b2dd3601991713bf3aaf61c47ae1c2',
34
  'name' => '__root__',
35
  ),
36
  'versions' =>
37
  array (
38
  '__root__' =>
39
  array (
40
- 'pretty_version' => '5.2.0',
41
- 'version' => '5.2.0.0',
42
  'aliases' =>
43
  array (
44
  ),
45
- 'reference' => 'acc1e6a3c2b2dd3601991713bf3aaf61c47ae1c2',
46
  ),
47
  ),
48
  );
25
  private static $installed = array (
26
  'root' =>
27
  array (
28
+ 'pretty_version' => 'dev-master',
29
+ 'version' => 'dev-master',
30
  'aliases' =>
31
  array (
32
  ),
33
+ 'reference' => 'adf8041d1672126bd45b71ae1d70742cfeae7aa8',
34
  'name' => '__root__',
35
  ),
36
  'versions' =>
37
  array (
38
  '__root__' =>
39
  array (
40
+ 'pretty_version' => 'dev-master',
41
+ 'version' => 'dev-master',
42
  'aliases' =>
43
  array (
44
  ),
45
+ 'reference' => 'adf8041d1672126bd45b71ae1d70742cfeae7aa8',
46
  ),
47
  ),
48
  );
vendor/composer/installed.php CHANGED
@@ -1,24 +1,24 @@
1
  <?php return array (
2
  'root' =>
3
  array (
4
- 'pretty_version' => '5.2.0',
5
- 'version' => '5.2.0.0',
6
  'aliases' =>
7
  array (
8
  ),
9
- 'reference' => 'acc1e6a3c2b2dd3601991713bf3aaf61c47ae1c2',
10
  'name' => '__root__',
11
  ),
12
  'versions' =>
13
  array (
14
  '__root__' =>
15
  array (
16
- 'pretty_version' => '5.2.0',
17
- 'version' => '5.2.0.0',
18
  'aliases' =>
19
  array (
20
  ),
21
- 'reference' => 'acc1e6a3c2b2dd3601991713bf3aaf61c47ae1c2',
22
  ),
23
  ),
24
  );
1
  <?php return array (
2
  'root' =>
3
  array (
4
+ 'pretty_version' => 'dev-master',
5
+ 'version' => 'dev-master',
6
  'aliases' =>
7
  array (
8
  ),
9
+ 'reference' => 'adf8041d1672126bd45b71ae1d70742cfeae7aa8',
10
  'name' => '__root__',
11
  ),
12
  'versions' =>
13
  array (
14
  '__root__' =>
15
  array (
16
+ 'pretty_version' => 'dev-master',
17
+ 'version' => 'dev-master',
18
  'aliases' =>
19
  array (
20
  ),
21
+ 'reference' => 'adf8041d1672126bd45b71ae1d70742cfeae7aa8',
22
  ),
23
  ),
24
  );