mediawiki: Add regex validator to the domain field

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
nbenedek authored and Sunil Mohan Adapa committed 2022-06-29 13:01:37 -07:00
1 parent 26f576bb79
commit 0d37809eb8
1 file changed
+2 -1
+2 -1
View File
@@ -34,7 +34,8 @@ class MediaWikiForm(forms.Form): # pylint: disable=W0232
label=_('Domain'), required=False, help_text=_(
'Used by MediaWiki to generate URLs that point to the wiki '
'such as in footer, feeds and emails. Examples: '
'"myfreedombox.example.org" or "example.onion".'))
'"myfreedombox.example.org" or "example.onion".'),
validators=[validators.RegexValidator('[$"]', inverse_match=True)])
site_name = forms.CharField(
label=_('Site Name'), required=False,