Fixed issue in CAPTCHA validation in Post.aspx.

This commit is contained in:
Dario Solera 2009-12-22 10:46:39 +00:00
parent 7b5d3223b3
commit 56a6ce3d9d
3 changed files with 5 additions and 3 deletions

View file

@ -86,6 +86,8 @@ namespace ScrewTurn.Wiki {
protected void btnSend_Click(object sender, EventArgs e) {
string content = editor.GetContent();
Page.Validate();
if(!Page.IsValid || content.Replace(" ", "").Length == 0 || txtSubject.Text.Replace(" ", "").Length == 0) {
lblResult.CssClass = "resulterror";
lblResult.Text = Properties.Messages.SubjectAndBodyNeeded;