From a7f8c8c832c77e307ccdea8635a2aeb868a116b2 Mon Sep 17 00:00:00 2001 From: Ere Maijala <ere.maijala@helsinki.fi> Date: Fri, 12 Feb 2021 14:29:49 +0200 Subject: [PATCH] Primo: Fix url-encoding of filters in search query. --- .../VuFindSearch/src/VuFindSearch/Backend/Primo/Connector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/VuFindSearch/src/VuFindSearch/Backend/Primo/Connector.php b/module/VuFindSearch/src/VuFindSearch/Backend/Primo/Connector.php index f30e229c928..1f72077f735 100644 --- a/module/VuFindSearch/src/VuFindSearch/Backend/Primo/Connector.php +++ b/module/VuFindSearch/src/VuFindSearch/Backend/Primo/Connector.php @@ -281,7 +281,7 @@ class Connector implements \Laminas\Log\LoggerAwareInterface $facetOp = $values['facetOp']; $values = $values['values']; } - array_map( + $values = array_map( function ($value) { return urlencode(preg_replace('/,/', '+', $value)); }, -- GitLab