Ensured tags are not sluggified when using them to filter short URL lists

This commit is contained in:
Alejandro Celaya 2020-03-29 12:51:39 +02:00
parent 7105add009
commit 11879ea377

View file

@ -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);
}
}