mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-30 05:21:46 +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
|
// empty, is by using the deprecated setContinueIfEmpty
|
||||||
$customSlug = $this->createInput(self::CUSTOM_SLUG, false)->setContinueIfEmpty(true);
|
$customSlug = $this->createInput(self::CUSTOM_SLUG, false)->setContinueIfEmpty(true);
|
||||||
$customSlug->getFilterChain()->attach(new Validation\SluggerFilter());
|
$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($customSlug);
|
||||||
|
|
||||||
$this->add($this->createPositiveNumberInput(self::MAX_VISITS));
|
$this->add($this->createPositiveNumberInput(self::MAX_VISITS));
|
||||||
|
|
Loading…
Add table
Reference in a new issue