WordPress File Upload - Version 3.6.1

Version Description

  • Iptanus Services server for getting version info and other utilities is now secure (https)
  • fixed bug with wfu_path_abs2rel function when ABSPATH is just a slash
  • additional fixes and new features in Professional version
Download this release

Release Info

Developer nickboss
Plugin Icon 128x128 WordPress File Upload
Version 3.6.1
Comparing to
See all releases

Code changes from version 3.6.0 to 3.6.1

lib/wfu_constants.php CHANGED
@@ -248,9 +248,9 @@ DEFINE("WFU_HEADERMESSAGECOLORS_STATE11", "#666666,#EEEEEE,#333333");
248
  //other plugin values
249
  DEFINE("WFU_RESPONSE_URL", $siteurl.WPFILEUPLOAD_DIR."wfu_response.php");
250
  DEFINE("WFU_AJAX_URL", $siteurl."/wp-admin/admin-ajax.php");
251
- DEFINE("WFU_SERVICES_SERVER_URL", 'http://services.iptanus.com');
252
  DEFINE("WFU_VERSION_SERVER_URL", WFU_SERVICES_SERVER_URL.'/wp-admin/admin-ajax.php');
253
- DEFINE("WFU_VERSION_HASH", 'QwtV833qMWJuGbdy7CcNAm4AXxxLEqT6xSKLtVHDpfrydb6gaExZ7LcU9HCYPmU6');
254
  DEFINE("WFU_DOWNLOADER_URL", $siteurl.WPFILEUPLOAD_DIR."wfu_file_downloader.php");
255
  DEFINE("WFU_PRO_VERSION_URL", 'http://www.iptanus.com/product/wordpress-file-upload-pro/');
256
  //define images
248
  //other plugin values
249
  DEFINE("WFU_RESPONSE_URL", $siteurl.WPFILEUPLOAD_DIR."wfu_response.php");
250
  DEFINE("WFU_AJAX_URL", $siteurl."/wp-admin/admin-ajax.php");
251
+ DEFINE("WFU_SERVICES_SERVER_URL", 'https://services2.iptanus.com');
252
  DEFINE("WFU_VERSION_SERVER_URL", WFU_SERVICES_SERVER_URL.'/wp-admin/admin-ajax.php');
253
+ DEFINE("WFU_VERSION_HASH", '9npWpXMhAQ5e6AGJ5zqbaPxLk9ePD3eSu3WKeN9p89E9wmgL2PHtrqXPzBVpStzh');
254
  DEFINE("WFU_DOWNLOADER_URL", $siteurl.WPFILEUPLOAD_DIR."wfu_file_downloader.php");
255
  DEFINE("WFU_PRO_VERSION_URL", 'http://www.iptanus.com/product/wordpress-file-upload-pro/');
256
  //define images
lib/wfu_functions.php CHANGED
@@ -377,7 +377,8 @@ function wfu_basedir($path) {
377
 
378
  function wfu_path_abs2rel($path) {
379
  $abspath_notrailing_slash = substr(ABSPATH, 0, -1);
380
- return ( substr($path, 0, 6) == 'ftp://' || substr($path, 0, 7) == 'ftps://' || substr($path, 0, 7) == 'sftp://' ? $path : str_replace($abspath_notrailing_slash, "", $path) );
 
381
  }
382
 
383
  function wfu_path_rel2abs($path) {
@@ -1767,17 +1768,17 @@ function wfu_inject_js_code($code){
1767
 
1768
  //********************* Browser Functions ****************************************************************************************************
1769
 
1770
- function wfu_safe_store_browser_actions($action_list) {
1771
  $code = wfu_create_random_string(16);
1772
- $_SESSION['wfu_browser_actions_safe_storage'][$code] = $action_list;
1773
  return $code;
1774
  }
1775
 
1776
- function wfu_get_browser_actions_from_safe($code) {
1777
  //sanitize $code
1778
  $code = wfu_sanitize_code($code);
1779
  if ( $code == "" ) return false;
1780
- //return actions from session variable, if exists
1781
  if ( !isset($_SESSION['wfu_browser_actions_safe_storage'][$code]) ) return false;
1782
  return $_SESSION['wfu_browser_actions_safe_storage'][$code];
1783
  }
377
 
378
  function wfu_path_abs2rel($path) {
379
  $abspath_notrailing_slash = substr(ABSPATH, 0, -1);
380
+ // return ( substr($path, 0, 6) == 'ftp://' || substr($path, 0, 7) == 'ftps://' || substr($path, 0, 7) == 'sftp://' ? $path : str_replace($abspath_notrailing_slash, "", $path) );
381
+ return ( substr($path, 0, 6) == 'ftp://' || substr($path, 0, 7) == 'ftps://' || substr($path, 0, 7) == 'sftp://' ? $path : substr($path, strlen($abspath_notrailing_slash)) );
382
  }
383
 
384
  function wfu_path_rel2abs($path) {
1768
 
1769
  //********************* Browser Functions ****************************************************************************************************
1770
 
1771
+ function wfu_safe_store_browser_params($params) {
1772
  $code = wfu_create_random_string(16);
1773
+ $_SESSION['wfu_browser_actions_safe_storage'][$code] = $params;
1774
  return $code;
1775
  }
1776
 
1777
+ function wfu_get_browser_params_from_safe($code) {
1778
  //sanitize $code
1779
  $code = wfu_sanitize_code($code);
1780
  if ( $code == "" ) return false;
1781
+ //return params from session variable, if exists
1782
  if ( !isset($_SESSION['wfu_browser_actions_safe_storage'][$code]) ) return false;
1783
  return $_SESSION['wfu_browser_actions_safe_storage'][$code];
1784
  }
readme.txt CHANGED
@@ -132,6 +132,11 @@ There is an option in plugin's settings in Dashboard to relax the CSS rules, so
132
 
133
  == Changelog ==
134
 
 
 
 
 
 
135
  = 3.6.0 =
136
  * French translation improved
137
  * correction of minor bug at wfu_functions.php
@@ -532,6 +537,9 @@ Initial version.
532
 
533
  == Upgrade Notice ==
534
 
 
 
 
535
  = 3.6.0 =
536
  Upgrade to introduce some new features and fix some minor bugs.
537
 
132
 
133
  == Changelog ==
134
 
135
+ = 3.6.1 =
136
+ * Iptanus Services server for getting version info and other utilities is now secure (https)
137
+ * fixed bug with wfu_path_abs2rel function when ABSPATH is just a slash
138
+ * additional fixes and new features in Professional version
139
+
140
  = 3.6.0 =
141
  * French translation improved
142
  * correction of minor bug at wfu_functions.php
537
 
538
  == Upgrade Notice ==
539
 
540
+ = 3.6.1 =
541
+ Upgrade to introduce some new features and fix some minor bugs.
542
+
543
  = 3.6.0 =
544
  Upgrade to introduce some new features and fix some minor bugs.
545
 
release_notes.txt CHANGED
@@ -1 +1 @@
1
- <!-- --><span><strong>Latest release notes: </strong>This version introduces a new filter, <strong>wfu_after_file_complete</strong>, that runs right after file has completely been uploaded, in order to perform any custom checks to its contents and accept or reject it. In addition, there are some code improvements and a better look-and-feel of the plugin's area in Dashboard. The Professional version of the plugin introduces a significant feature with this version, the ability to implement filters and actions (code hooks) without requiring 3rd party plugins. You can find out more details <a href="http://www.iptanus.com/how-to-create-custom-filters-and-actions-for-wordpress-file-upload-plugin">here</a>.<!-- --><!-- -->
1
+ <!-- --><span><strong>Latest release notes: </strong>This is a minor release introducing some bug fixes. In the Professional version of the plugin some new features are added, related to dropbox and captcha. You can find more details in the Release Notes area of the plugin's </span><a href="http://www.iptanus.com/wordpress-plugins/wordpress-file-upload/">support page</a><span>.</span><!-- --><!-- -->
wordpress_file_upload.php CHANGED
@@ -4,7 +4,7 @@ if( !session_id() ) { session_start(); }
4
  /*
5
  Plugin URI: http://www.iptanus.com/support/wordpress-file-upload
6
  Description: Simple interface to upload files from a page.
7
- Version: 3.6.0
8
  Author: Nickolas Bossinas
9
  Author URI: http://www.iptanus.com
10
  */
4
  /*
5
  Plugin URI: http://www.iptanus.com/support/wordpress-file-upload
6
  Description: Simple interface to upload files from a page.
7
+ Version: 3.6.1
8
  Author: Nickolas Bossinas
9
  Author URI: http://www.iptanus.com
10
  */