From e3c10ca85342bba806d116c4b545dbe7b5f5cd97 Mon Sep 17 00:00:00 2001 From: kovax Date: Thu, 14 Apr 2022 13:13:32 +0200 Subject: [PATCH 1/5] trim() vendor and sku/mpn values --- src/Icecat/Api.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Icecat/Api.php b/src/Icecat/Api.php index 63255d5..10e0d49 100644 --- a/src/Icecat/Api.php +++ b/src/Icecat/Api.php @@ -138,9 +138,9 @@ public function getArticleByEAN($ean, $lang='HU') public function getArticleByMPN($vendor, $mpn, $lang='HU') { $params = array( - 'prod_id' => $mpn, - 'vendor' => $vendor, - 'lang' => $lang, + 'prod_id' => trim($mpn), + 'vendor' => trim($vendor), + 'lang' => trim($lang), 'output' => 'productxml' ); From 9e8d1fbf0382e6258a6bd0d555ea6d406331d899 Mon Sep 17 00:00:00 2001 From: kovax Date: Thu, 14 Apr 2022 13:13:55 +0200 Subject: [PATCH 2/5] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index a7f322c..c265c3a 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "email": "support@icoders.co" } ], - "version": "1.0.0", + "version": "1.0.1", "license": "MIT", "minimum-stability": "dev", "require": { From 5326d9c3c5f1ac68ded9c57183c7e6b98e084ba9 Mon Sep 17 00:00:00 2001 From: kovax Date: Thu, 14 Apr 2022 13:15:05 +0200 Subject: [PATCH 3/5] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index c7a1834..38be056 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,11 @@ Icecat is a PHP library, that assists you in the following 2 procedures: * Fetching data from the Icecat database using basic product information. * Parsing this data from the Icecat response, and using them in real life applications. +> +> **v1.0.1:** +> +> - trim() vendor and sku/mpn values + ### About Icecat [Icecat](http://icecat.biz, "Icecat") is an open catalog, providing free access to thousands of product datasheets. In extend, when taking a subscription, the amount of accessible datasheets are increased. From c4078d9f5a6c9c48c09be3eff9393bf74c22f48b Mon Sep 17 00:00:00 2001 From: kovax Date: Thu, 14 Apr 2022 13:15:32 +0200 Subject: [PATCH 4/5] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index c265c3a..91427cc 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "email": "support@icoders.co" } ], - "version": "1.0.1", + "version": "1.0.2", "license": "MIT", "minimum-stability": "dev", "require": { From 9f98da8e1f5ec38467bc1222b68ca41123622fd8 Mon Sep 17 00:00:00 2001 From: kovax Date: Thu, 14 Apr 2022 13:15:46 +0200 Subject: [PATCH 5/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 38be056..5cfdba9 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Icecat is a PHP library, that assists you in the following 2 procedures: * Parsing this data from the Icecat response, and using them in real life applications. > -> **v1.0.1:** +> **v1.0.2:** > > - trim() vendor and sku/mpn values