From bb52715ae44a5c09bb633f01ae8b8aedb88273a7 Mon Sep 17 00:00:00 2001 From: David Szigecsan Date: Tue, 7 Sep 2021 11:47:10 +0200 Subject: [PATCH] SECURITY-4918: Specification of the caught exception Co-authored-by: Laszlo Hammerl --- lib/escher/auth.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/escher/auth.rb b/lib/escher/auth.rb index 3ab0fad..45437e5 100644 --- a/lib/escher/auth.rb +++ b/lib/escher/auth.rb @@ -38,6 +38,8 @@ def is_valid?(*args) begin authenticate(*args) return true + rescue EscherError + return false rescue return false end