From d8b6ea8bbadb0467793f052c6b96d77492f6b637 Mon Sep 17 00:00:00 2001 From: Rob Zolkos Date: Thu, 15 Jan 2026 22:13:47 -0500 Subject: [PATCH] Strip whitespace from webhook URLs Prevents validation errors when users accidentally include trailing spaces in webhook URLs. --- app/models/webhook.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/webhook.rb b/app/models/webhook.rb index 3b34af041..f008aa934 100644 --- a/app/models/webhook.rb +++ b/app/models/webhook.rb @@ -36,6 +36,7 @@ class Webhook < ApplicationRecord after_create :create_delinquency_tracker! normalizes :subscribed_actions, with: ->(value) { Array.wrap(value).map(&:to_s).uniq & PERMITTED_ACTIONS } + normalizes :url, with: -> { it.strip } validates :name, presence: true validate :validate_url