opnsense/core: automatically remove trailing slash (#3361)

This commit is contained in:
Fabian Franz BSc 2019-03-28 09:42:54 +01:00 committed by Franco Fichtner
parent 9cb95f7c86
commit cec76910b4

View File

@ -9,6 +9,8 @@
</enabled>
<url type="TextField">
<Required>N</Required>
<mask>/^https?:\/\/.*[^\/]$/</mask>
<ValidationMessage>The url must be valid without a trailing slash. For example: https://nextcloud.example.com or https://example.com/nextcloud</ValidationMessage>
<Constraints>
<check001>
<ValidationMessage>An URL for the Nextcloud server must be set.</ValidationMessage>