mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
mediawiki: Add regex validator to the domain field
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
1 parent
26f576bb79
commit
0d37809eb8
1 file changed
+2
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user