Fixed and closed #467: names of new items are now trimmed before saving or renaming.
This commit is contained in:
parent
121f90fd9b
commit
f8e410bf6a
12 changed files with 35 additions and 2 deletions
|
@ -497,6 +497,8 @@ namespace ScrewTurn.Wiki {
|
|||
txtName.Text = GenerateAutoName(txtTitle.Text);
|
||||
}
|
||||
|
||||
txtName.Text = txtName.Text.Trim();
|
||||
|
||||
Page.Validate("nametitle");
|
||||
Page.Validate("captcha");
|
||||
if(!Page.IsValid) {
|
||||
|
@ -708,6 +710,8 @@ namespace ScrewTurn.Wiki {
|
|||
lblCategoryResult.Text = "";
|
||||
lblCategoryResult.CssClass = "";
|
||||
|
||||
txtCategory.Text = txtCategory.Text.Trim();
|
||||
|
||||
Page.Validate("category");
|
||||
if(!Page.IsValid) return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue