diff --git a/extensions/tags/src/TagValidator.php b/extensions/tags/src/TagValidator.php index 5d75d7823..6a064341a 100644 --- a/extensions/tags/src/TagValidator.php +++ b/extensions/tags/src/TagValidator.php @@ -18,7 +18,7 @@ class TagValidator extends AbstractValidator */ protected $rules = [ 'name' => ['required'], - 'slug' => ['required', 'unique:tags'], + 'slug' => ['required', 'unique:tags', 'regex:/^[^\/\\ ]*$/i'], 'is_hidden' => ['bool'], 'description' => ['string', 'max:700'], 'color' => ['regex:/^#([a-f0-9]{6}|[a-f0-9]{3})$/i'],