Skip to content

Commit

Permalink
Fix order ID array processing #11
Browse files Browse the repository at this point in the history
  • Loading branch information
YAJIMA committed Mar 7, 2020
1 parent d4af9a2 commit 661bf15
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Clickpost.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: CSV Export for Click Post
Plugin URI: https://github.com/YAJIMA/welcart_csv4clickpost
Description: このプラグインは Welcart とクリックポストとの連携プラグインです。Welcart 本体と一緒にご利用ください。
Version: 1.1.0
Version: 1.1.3
Author: YAJIMA Yuichiro
Author URI: https://www.lancers.jp/profile/yajima8818
**/
Expand Down
7 changes: 5 additions & 2 deletions ClickpostNumber.class.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
CSV Export for Click Post
Version: 1.1.2
Version: 1.1.3
Author: HatchBit & Co.
**/

Expand Down Expand Up @@ -254,7 +254,10 @@ public function outcsv_shipping() {
check_admin_referer( 'admin_system', 'wc_nonce' );

$filename = "Clickpost-".current_time('YmdHis').".csv";
$ids = sanitize_text_field($_GET['listcheck']);

foreach ($_GET['listcheck'] as $item) {
$ids[] = sanitize_text_field($item);
}

$billing_code = self::$opts['billing_code'];
$kind_code = self::$opts['kind_code'];
Expand Down
10 changes: 8 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: hatchbitco
Donate link: https://www.hatchbit.jp/
Tags: e-commerce, export
Requires at least: 5.3.2
Tested up to: 5.3.2
Stable tag: 5.3.2
Tested up to: 5.4
Stable tag: 5.4
Requires PHP: 7.1.2
License: MIT
License URI: https://opensource.org/licenses/mit-license.php
Expand Down Expand Up @@ -40,6 +40,9 @@ Check the checkbox of the target order information.

== Changelog ==

= 1.1.3 =
* Fix order ID array processing

= 1.1.2 =
* properly sanitized, as we required

Expand All @@ -57,5 +60,8 @@ Check the checkbox of the target order information.

== Upgrade Notice ==

= 1.1.3 =
This version fixes a security related bug. Upgrade immediately.

= 1.1.1 =
This version fixes a security related bug. Upgrade immediately.
3 changes: 3 additions & 0 deletions readme_ja.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ CSV Export for Click Post は Welcart専用の拡張プラグインで、日本
==============
更新履歴
==============
v1.1.3 2020/03/07
 ・注文ID配列処理を修正

v1.1.2 2020/02/18
 ・入力値のサニタイズ処理を追加

Expand Down

0 comments on commit 661bf15

Please sign in to comment.