aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-12-03 11:10:39 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-12-03 11:10:39 +0100
commit5aa0294cca8115ce9a9401f9587d07d7ee37b769 (patch)
tree81995ac5663a2f46d3b689910abb9b210726cbad /src/Wallabag
parent1093e979ff49f9072c30d1d576c6adf1f8e76bdf (diff)
downloadwallabag-5aa0294cca8115ce9a9401f9587d07d7ee37b769.tar.gz
wallabag-5aa0294cca8115ce9a9401f9587d07d7ee37b769.tar.zst
wallabag-5aa0294cca8115ce9a9401f9587d07d7ee37b769.zip
Limit rule to 255
To avoid database error
Diffstat (limited to 'src/Wallabag')
-rw-r--r--src/Wallabag/CoreBundle/Entity/TaggingRule.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/TaggingRule.php b/src/Wallabag/CoreBundle/Entity/TaggingRule.php
index 28914cc1..72651b19 100644
--- a/src/Wallabag/CoreBundle/Entity/TaggingRule.php
+++ b/src/Wallabag/CoreBundle/Entity/TaggingRule.php
@@ -28,6 +28,7 @@ class TaggingRule
28 * @var string 28 * @var string
29 * 29 *
30 * @Assert\NotBlank() 30 * @Assert\NotBlank()
31 * @Assert\Length(max=255)
31 * @RulerZAssert\ValidRule( 32 * @RulerZAssert\ValidRule(
32 * allowed_variables={"title", "url", "isArchived", "isStared", "content", "language", "mimetype", "readingTime", "domainName"}, 33 * allowed_variables={"title", "url", "isArchived", "isStared", "content", "language", "mimetype", "readingTime", "domainName"},
33 * allowed_operators={">", "<", ">=", "<=", "=", "is", "!=", "and", "not", "or", "matches"} 34 * allowed_operators={">", "<", ">=", "<=", "=", "is", "!=", "and", "not", "or", "matches"}