From 758234de7b54704a6ffa4dbfa64146a985a73591 Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Wed, 21 Sep 2016 12:08:29 -0400 Subject: [PATCH] ikiwiki: Add help text about name restriction --- CHANGELOG.md | 1 + plinth/modules/ikiwiki/forms.py | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 88ea65a03..233138cfc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,7 @@ All notable changes to this project will be documented in this file. requiring root permission. - xmpp: Replace jwchat with jsxc. Bump module version number so current installs can be updated. +- ikiwiki: Allow only alphanumerics in wiki/blog name. ### Removed - Remove width management for forms. diff --git a/plinth/modules/ikiwiki/forms.py b/plinth/modules/ikiwiki/forms.py index b5ec4f2e4..a43c32f79 100644 --- a/plinth/modules/ikiwiki/forms.py +++ b/plinth/modules/ikiwiki/forms.py @@ -30,8 +30,10 @@ class IkiwikiCreateForm(forms.Form): label=_('Type'), choices=[('wiki', 'Wiki'), ('blog', 'Blog')]) - name = forms.CharField(label=_('Name'), - validators=[RegexValidator(regex='^[a-zA-Z0-9]+$')]) + name = forms.CharField( + label=_('Name'), + help_text=_('Only alphanumeric characters are allowed.'), + validators=[RegexValidator(regex='^[a-zA-Z0-9]+$')]) admin_name = forms.CharField(label=_('Admin Account Name'))