mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-22 21:02:24 +03:00
Ensured only empty strings are checked while verifying empty value on custom slug
This commit is contained in:
parent
67e93a6874
commit
18ceafeb60
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ class ShortUrlMetaInputFilter extends InputFilter
|
|||
// empty, is by using the deprecated setContinueIfEmpty
|
||||
$customSlug = $this->createInput(self::CUSTOM_SLUG, false)->setContinueIfEmpty(true);
|
||||
$customSlug->getFilterChain()->attach(new Validation\SluggerFilter());
|
||||
$customSlug->getValidatorChain()->attach(new Validator\NotEmpty());
|
||||
$customSlug->getValidatorChain()->attach(new Validator\NotEmpty(Validator\NotEmpty::STRING));
|
||||
$this->add($customSlug);
|
||||
|
||||
$this->add($this->createPositiveNumberInput(self::MAX_VISITS));
|
||||
|
|
Loading…
Reference in a new issue