From 11879ea37723a66acf708c4c0610810287303bd1 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 29 Mar 2020 12:51:39 +0200 Subject: [PATCH] Ensured tags are not sluggified when using them to filter short URL lists --- module/Core/src/Validation/ShortUrlsParamsInputFilter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/Core/src/Validation/ShortUrlsParamsInputFilter.php b/module/Core/src/Validation/ShortUrlsParamsInputFilter.php index b3e6db2d..20191fa1 100644 --- a/module/Core/src/Validation/ShortUrlsParamsInputFilter.php +++ b/module/Core/src/Validation/ShortUrlsParamsInputFilter.php @@ -39,7 +39,7 @@ class ShortUrlsParamsInputFilter extends InputFilter $tags = $this->createArrayInput(self::TAGS, false); $tags->getFilterChain()->attach(new Filter\StringToLower()) - ->attach(new Validation\SluggerFilter()); + ->attach(new Filter\PregReplace(['pattern' => '/ /', 'replacement' => '-'])); $this->add($tags); } }