]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Also validate used variables when creating tagging rules
authorKévin Gomez <contact@kevingomez.fr>
Sat, 17 Oct 2015 14:57:41 +0000 (16:57 +0200)
committerKévin Gomez <contact@kevingomez.fr>
Wed, 11 Nov 2015 15:23:49 +0000 (16:23 +0100)
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;