Skip to content

Commit c85a254

Browse files
authored
Merge pull request from GHSA-p75c-5x3h-cxcg
CVE-2022-39281 mitigations
2 parents fd2e72d + b1511d8 commit c85a254

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/models/polymorphic/task.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ def self.find_all_grouped(user, view)
189189
#----------------------------------------------------------------------------
190190
def self.bucket_empty?(bucket, user, view = "pending")
191191
return false if bucket.blank? || !ALLOWED_VIEWS.include?(view)
192+
return false unless Setting.task_bucket.map(&:to_s).include?(bucket.to_s)
192193

193194
if view == "assigned"
194195
assigned_by(user).send(bucket).pending.count

lib/fat_free_crm/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module FatFreeCRM
99
module VERSION # :nodoc:
1010
MAJOR = 0
1111
MINOR = 20
12-
TINY = 0
12+
TINY = 1
1313
PRE = nil
1414

1515
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')

0 commit comments

Comments
 (0)