]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Entity/TaggingRule.php
Also validate used variables when creating tagging rules
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Entity / TaggingRule.php
index 20c15258291b1b59a7eb9e6db6103195d3b93ea6..97a29336e1ae2ad73ec1cd968c887b8d820b9bd8 100644 (file)
@@ -28,7 +28,7 @@ class TaggingRule
      * @var string
      *
      * @Assert\NotBlank()
-     * @RulerZAssert\ValidRule()
+     * @RulerZAssert\ValidRule(allowed_variables={"title", "url", "isArchived", "isStared", "content", "language", "mimetype", "readingTime", "domainName"})
      * @ORM\Column(name="rule", type="string", nullable=false)
      */
     private $rule;