summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-03-01 15:52:21 +0800
committereltrac <hi@eltr.ac>2026-03-01 15:52:21 +0800
commit7fe2e68adb27e97fd436e24afbbfa878523d700a (patch)
tree18431140157174f4a338333773dbe6a5f4982e38
parent4c5185b84357e03735b78146f642d7ea4fc2959d (diff)
feat(verification): check if source and target is the same
-rw-r--r--src/weepinbell/receiver.clj3
1 files changed, 3 insertions, 0 deletions
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)))