aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Entity
diff options
context:
space:
mode:
authorKévin Gomez <contact@kevingomez.fr>2015-10-18 14:32:58 +0200
committerKévin Gomez <contact@kevingomez.fr>2015-11-11 16:23:49 +0100
commitc23fc05df86c3cdb8eb40994b98d057f4a81b02d (patch)
tree98d61321ba93c1a0bcbc890a2de0d578b6240af2 /src/Wallabag/CoreBundle/Entity
parent5a166c5c1af645b1b1ba77ba5f2e24094e7b60e8 (diff)
downloadwallabag-c23fc05df86c3cdb8eb40994b98d057f4a81b02d.tar.gz
wallabag-c23fc05df86c3cdb8eb40994b98d057f4a81b02d.tar.zst
wallabag-c23fc05df86c3cdb8eb40994b98d057f4a81b02d.zip
Validate used operators when creating tagging rules
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity')
-rw-r--r--src/Wallabag/CoreBundle/Entity/TaggingRule.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/TaggingRule.php b/src/Wallabag/CoreBundle/Entity/TaggingRule.php
index 97a29336..472ae582 100644
--- a/src/Wallabag/CoreBundle/Entity/TaggingRule.php
+++ b/src/Wallabag/CoreBundle/Entity/TaggingRule.php
@@ -28,7 +28,10 @@ class TaggingRule
28 * @var string 28 * @var string
29 * 29 *
30 * @Assert\NotBlank() 30 * @Assert\NotBlank()
31 * @RulerZAssert\ValidRule(allowed_variables={"title", "url", "isArchived", "isStared", "content", "language", "mimetype", "readingTime", "domainName"}) 31 * @RulerZAssert\ValidRule(
32 * allowed_variables={"title", "url", "isArchived", "isStared", "content", "language", "mimetype", "readingTime", "domainName"},
33 * allowed_operators={">", "<", ">=", "<=", "=", "is", "!=", "and", "not", "or"}
34 * )
32 * @ORM\Column(name="rule", type="string", nullable=false) 35 * @ORM\Column(name="rule", type="string", nullable=false)
33 */ 36 */
34 private $rule; 37 private $rule;