From 2e91563266d36bb691aa0f75f0dab17fa4ce6eec Mon Sep 17 00:00:00 2001 From: "David E. Wheeler" Date: Thu, 15 Aug 2024 15:53:17 -0400 Subject: [PATCH] Fix warning, rsync URL validation Remove the quotation marks from ` HTTP::Body '1.08'` to fix a warning new in Perl 5.40. I apparently have a lot of code that incorrectly quotes versions. Add a custom validation function to the jQuery Validation plugin to validate rsync URLs. Apparently at some point the url validator included in jQuery Validation was limited to checking http and ftp URLs. This prevents the mirror form from failing to submit because of an incorrect validation error. So crib from the [url validation] to create an rsync URL validator. Discovered after fixing the Content Security Policy header on manager.pgxn.org. Apparently inline JS hasn't worked since introducing the header some time ago, because JS code in `