Skip to content

Commit

Permalink
Fixed: Check API key and API secret values with strlen function
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromdev committed Apr 5, 2016
1 parent 12902ce commit c3feee6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions includes/classes/class.issuupanelconfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
class IssuuPanelConfig
{

private $issuuPanelDebug;
private $issuuPanelDebug;

private $mobileDetect;

private $issuuPanelCatcher;
private $issuuPanelCatcher;

private $issuuPanelSimpleReader;

Expand Down Expand Up @@ -107,7 +107,7 @@ public function __construct(
$this->issuuPanelCacheManager = new IssuuPanelCacheManager($this->getOptionEntity());

// IssuuServiceApi
if (!empty($this->getOptionEntity()->getApiKey()) && !empty($this->getOptionEntity()->getApiSecret()))
if (!strlen($this->getOptionEntity()->getApiKey()) > 0 && !strlen($this->getOptionEntity()->getApiSecret()) > 0)
{
$this->issuuServiceApi = array(
'IssuuDocument' => new IssuuDocument(
Expand Down
6 changes: 3 additions & 3 deletions issuu-panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
Plugin Name: Issuu Panel
Plugin URI: https://github.com/Issuu-Panel-WordPress-Plugin/issuu-panel
Description: Admin panel for Issuu. You can upload your documents, create folders and embed documents in posts.
Version: 1.6.3
Version: 1.6.4
Author: Pedro Marcelo
Author URI: https://www.linkedin.com/profile/view?id=265534858
License: GPL3
*/

if (defined('ISSUU_PANEL_VERSION'))
{
switch (version_compare(ISSUU_PANEL_VERSION, '1.6.3')) {
switch (version_compare(ISSUU_PANEL_VERSION, '1.6.4')) {
case -1:
wp_die("A lower version of Issuu Panel plugin is already installed");
break;
Expand All @@ -30,7 +30,7 @@
|--------------------------------------
*/

define('ISSUU_PANEL_VERSION', '1.6.3');
define('ISSUU_PANEL_VERSION', '1.6.4');
define('ISSUU_PANEL_DIR', plugin_dir_path(__FILE__));
define('ISSUU_PANEL_URL', plugin_dir_url(__FILE__));
define('ISSUU_PANEL_PREFIX', 'issuu_painel_');
Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ You can send the translation by e-mail. Send for [email protected]

== Changelog ==

= 1.6.4 =
* Fixed: Check API key and API secret values with strlen function

= 1.6.3 =
* Updated: Plugin structure is event-based now
* Fixed: Upload documents on PHP 5.5 version or upper
Expand Down

0 comments on commit c3feee6

Please sign in to comment.