1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-12-01 05:43:04 +00:00

feat: allow @ and % in webhook urls

هذا الالتزام موجود في:
Adam Cooke
2022-02-14 16:12:47 +00:00
الأصل 889e7bc9cf
التزام c60c69db18

عرض الملف

@@ -28,7 +28,7 @@ class Webhook < ApplicationRecord
has_many :webhook_requests has_many :webhook_requests
validates :name, :presence => true validates :name, :presence => true
validates :url, :presence => true, :format => {:with => /\Ahttps?\:\/\/[a-z0-9\-\.\_\?\=\&\/\+:]+\z/i, :allow_blank => true} validates :url, :presence => true, :format => {:with => /\Ahttps?\:\/\/[a-z0-9\-\.\_\?\=\&\/\+:%@]+\z/i, :allow_blank => true}
scope :enabled, -> { where(:enabled => true) } scope :enabled, -> { where(:enabled => true) }