X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/88ba316abeecffccd1cb51c63ce5594c95023624..5c5695d9c1317a958f85fe85eefb1dc92bb68178:/script/deliver-message diff --git a/script/deliver-message b/script/deliver-message index 71fa4f2f1..087a117c3 100755 --- a/script/deliver-message +++ b/script/deliver-message @@ -20,8 +20,8 @@ else exit 0 end +exit 0 unless ActiveSupport::SecurityUtils.secure_compare(token, digest[0, 6]) exit 0 unless from.active? -exit 0 unless token == digest[0, 6] exit 0 if date < 1.month.ago message&.update(:message_read => true)