From 3bb6dcdbf11bee3f54ed1cdf005f58fed82f106e Mon Sep 17 00:00:00 2001 From: alext Date: Sun, 24 Jun 2018 19:44:49 +0200 Subject: [PATCH] Make REST API search check with "q" parameter case insensitive. #485 --- CHANGELOG.md | 1 + src/engine/Api/V1/Processors/Search.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a01f950f..93dd100a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## Fixed - #480: Make the app GDPR - new EU privacy regulations compliant. +- #485: Make REST API search check with "q" parameter case insensitive. - #489: REST API response headers must use the Content-Type application/json value. - #500: Performance optimization in backend calendar page, after the user clicks the insert appointment button. diff --git a/src/engine/Api/V1/Processors/Search.php b/src/engine/Api/V1/Processors/Search.php index 8f93ef37..bc91a218 100644 --- a/src/engine/Api/V1/Processors/Search.php +++ b/src/engine/Api/V1/Processors/Search.php @@ -61,7 +61,7 @@ class Search implements ProcessorsInterface { { $currentKey = $key; - if (strpos($value, $needle) !== FALSE || (is_array($value) && self::_recursiveArraySearch($value, + if (stripos($value, $needle) !== FALSE || (is_array($value) && self::_recursiveArraySearch($value, $needle) !== FALSE)) { return $currentKey;