From eecd9f0eb5812e88b3aa63ccbb2eed1e7a853e37 Mon Sep 17 00:00:00 2001 From: Stephen Rushe Date: Mon, 17 Jul 2023 21:01:22 +0100 Subject: [PATCH] Small tweak to checking url --- lib/ho_tan/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ho_tan/application.rb b/lib/ho_tan/application.rb index 913a9f1..e3b8fcb 100644 --- a/lib/ho_tan/application.rb +++ b/lib/ho_tan/application.rb @@ -124,7 +124,7 @@ module HoTan end def render_source - if params.fetch(:url, '').strip.empty? + if params.dig(:url).to_s.strip.empty? send_error(description: "'url' must be provided to retrieve 'source'") end -- 2.45.2