mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
mediawiki: Add regex validator to the domain field
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
26f576bb79
commit
0d37809eb8
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user