From 7fe2e68adb27e97fd436e24afbbfa878523d700a Mon Sep 17 00:00:00 2001 From: eltrac Date: Sun, 1 Mar 2026 15:52:21 +0800 Subject: feat(verification): check if source and target is the same --- src/weepinbell/receiver.clj | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/weepinbell/receiver.clj b/src/weepinbell/receiver.clj index a2cd79f..50aab6a 100644 --- a/src/weepinbell/receiver.clj +++ b/src/weepinbell/receiver.clj @@ -19,6 +19,9 @@ ;; The receiver MUST check that source and target are valid URLs [URL] ;; and are of schemes that are supported by the receiver. (validate-urls s t) + ;; The receiver MUST reject the request + ;; if the source URL is the same as the target URL. + (not (= s t)) #_(validate-source s) #_(validate-target t))) -- cgit v1.2.3