summaryrefslogtreecommitdiffstats
path: root/src/Modifier
diff options
context:
space:
mode:
authorIgnace Nyamagana Butera <nyamsprod@gmail.com>2015-05-18 17:38:07 +0200
committerIgnace Nyamagana Butera <nyamsprod@gmail.com>2015-05-20 09:13:03 +0200
commite36bc99a971be408805aa96c933dad1183631a0a (patch)
treef32be415333280179324a671d96380bc317a48e9 /src/Modifier
parent3a2a199d686bc8b52689b74d5a66cb2e9b9370c9 (diff)
downloadcsv-e36bc99a971be408805aa96c933dad1183631a0a.zip
csv-e36bc99a971be408805aa96c933dad1183631a0a.tar.gz
csv-e36bc99a971be408805aa96c933dad1183631a0a.tar.bz2
bug fix for issue #99
Diffstat (limited to 'src/Modifier')
-rw-r--r--src/Modifier/MapIterator.php2
-rw-r--r--src/Modifier/QueryFilter.php6
-rw-r--r--src/Modifier/RowFilter.php2
-rw-r--r--src/Modifier/StreamFilter.php2
4 files changed, 8 insertions, 4 deletions
diff --git a/src/Modifier/MapIterator.php b/src/Modifier/MapIterator.php
index 504b9b2..2306f1c 100644
--- a/src/Modifier/MapIterator.php
+++ b/src/Modifier/MapIterator.php
@@ -4,7 +4,7 @@
*
* @license http://opensource.org/licenses/MIT
* @link https://github.com/thephpleague/csv/
-* @version 7.1.0
+* @version 7.1.1
* @package League.csv
*
* For the full copyright and license information, please view the LICENSE
diff --git a/src/Modifier/QueryFilter.php b/src/Modifier/QueryFilter.php
index 739028d..03beb52 100644
--- a/src/Modifier/QueryFilter.php
+++ b/src/Modifier/QueryFilter.php
@@ -4,7 +4,7 @@
*
* @license http://opensource.org/licenses/MIT
* @link https://github.com/thephpleague/csv/
-* @version 7.1.0
+* @version 7.1.1
* @package League.csv
*
* For the full copyright and license information, please view the LICENSE
@@ -241,6 +241,10 @@ trait QueryFilter
*/
protected function applyBomStripping(Iterator $iterator)
{
+ if (! $this->strip_bom) {
+ return $iterator;
+ }
+
if (! $this->isBomStrippable()) {
$this->strip_bom = false;
return $iterator;
diff --git a/src/Modifier/RowFilter.php b/src/Modifier/RowFilter.php
index 8f8f796..b340a68 100644
--- a/src/Modifier/RowFilter.php
+++ b/src/Modifier/RowFilter.php
@@ -4,7 +4,7 @@
*
* @license http://opensource.org/licenses/MIT
* @link https://github.com/thephpleague/csv/
-* @version 7.1.0
+* @version 7.1.1
* @package League.csv
*
* For the full copyright and license information, please view the LICENSE
diff --git a/src/Modifier/StreamFilter.php b/src/Modifier/StreamFilter.php
index a948101..76321c4 100644
--- a/src/Modifier/StreamFilter.php
+++ b/src/Modifier/StreamFilter.php
@@ -4,7 +4,7 @@
*
* @license http://opensource.org/licenses/MIT
* @link https://github.com/thephpleague/csv/
-* @version 7.1.0
+* @version 7.1.1
* @package League.csv
*
* For the full copyright and license information, please view the LICENSE