reSmush.it Image Optimizer - Version 0.3.9

Version Description

  • Fix : OWASP & Security fix
Download this release

Release Info

Developer resmushit
Plugin Icon 128x128 reSmush.it Image Optimizer
Version 0.3.9
Comparing to
See all releases

Code changes from version 0.3.8 to 0.3.9

classes/resmushit.class.php CHANGED
@@ -199,7 +199,7 @@ Class reSmushit {
199
  $output = array();
200
  $extraSQL = null;
201
  if($attachment_id)
202
- $extraSQL = "where $wpdb->postmeta.post_id = ". $attachment_id;
203
 
204
  $query = $wpdb->prepare(
205
  "select
199
  $output = array();
200
  $extraSQL = null;
201
  if($attachment_id)
202
+ $extraSQL = "where $wpdb->postmeta.post_id = ". mysql_real_escape_string($attachment_id);
203
 
204
  $query = $wpdb->prepare(
205
  "select
classes/resmushitUI.class.php CHANGED
@@ -428,6 +428,8 @@ Class reSmushitUI {
428
  if ( 1 == get_option( $machine_name ) ) $additionnal = 'checked="checked"';
429
  $output .= "<input type='checkbox' name='$machine_name' id='$machine_name' value='1' ". $additionnal ."/>";
430
  break;
 
 
431
  }
432
  $output .= '</div>';
433
  return $output;
428
  if ( 1 == get_option( $machine_name ) ) $additionnal = 'checked="checked"';
429
  $output .= "<input type='checkbox' name='$machine_name' id='$machine_name' value='1' ". $additionnal ."/>";
430
  break;
431
+ default:
432
+ break;
433
  }
434
  $output .= '</div>';
435
  return $output;
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: resmushit
3
  Tags: image, optimizer, image optimization, resmush.it, smush, jpg, png, gif, optimization, compression, Compress, Images, Pictures, Reduce Image Size, Smush, Smush.it
4
  Requires at least: 4.0.0
5
  Tested up to: 5.4.2
6
- Stable tag: 0.3.8
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -76,6 +76,9 @@ Yes ! Absolutely free, the only restriction is to send images below 5MB.
76
 
77
  == Changelog ==
78
 
 
 
 
79
  = 0.3.8 =
80
  * Fix : Fix warning in variable not set (metadata)
81
  * Fix : Add an extension uppercase check
3
  Tags: image, optimizer, image optimization, resmush.it, smush, jpg, png, gif, optimization, compression, Compress, Images, Pictures, Reduce Image Size, Smush, Smush.it
4
  Requires at least: 4.0.0
5
  Tested up to: 5.4.2
6
+ Stable tag: 0.3.9
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
76
 
77
  == Changelog ==
78
 
79
+ = 0.3.9 =
80
+ * Fix : OWASP & Security fix
81
+
82
  = 0.3.8 =
83
  * Fix : Fix warning in variable not set (metadata)
84
  * Fix : Add an extension uppercase check
resmushit.php CHANGED
@@ -10,8 +10,8 @@
10
  * Plugin Name: reSmush.it Image Optimizer
11
  * Plugin URI: https://wordpress.org/plugins/resmushit-image-optimizer/
12
  * Description: Image Optimization API. Provides image size optimization
13
- * Version: 0.3.8
14
- * Timestamp: 2020.07.23
15
  * Author: reSmush.it
16
  * Author URI: https://resmush.it
17
  * Author: Charles Bourgeaux
10
  * Plugin Name: reSmush.it Image Optimizer
11
  * Plugin URI: https://wordpress.org/plugins/resmushit-image-optimizer/
12
  * Description: Image Optimization API. Provides image size optimization
13
+ * Version: 0.3.9
14
+ * Timestamp: 2020.07.26
15
  * Author: reSmush.it
16
  * Author URI: https://resmush.it
17
  * Author: Charles Bourgeaux
resmushit.settings.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  define('RESMUSHIT_ENDPOINT', 'http://api.resmush.it/');
4
- define('RESMUSHIT_VERSION', '0.3.8');
5
  define('RESMUSHIT_DEFAULT_QLTY', '92');
6
  define('RESMUSHIT_TIMEOUT', '10');
7
  define('RESMUSHIT_LOGS_PATH', 'resmushit.log');
1
  <?php
2
 
3
  define('RESMUSHIT_ENDPOINT', 'http://api.resmush.it/');
4
+ define('RESMUSHIT_VERSION', '0.3.9');
5
  define('RESMUSHIT_DEFAULT_QLTY', '92');
6
  define('RESMUSHIT_TIMEOUT', '10');
7
  define('RESMUSHIT_LOGS_PATH', 'resmushit.log');