From 56a6ce3d9d12c496708ca66e78011bee267120d8 Mon Sep 17 00:00:00 2001 From: Dario Solera Date: Tue, 22 Dec 2009 10:46:39 +0000 Subject: [PATCH] Fixed issue in CAPTCHA validation in Post.aspx. --- AssemblyVersion.cs | 4 ++-- WebApplication/Post.aspx.cs | 2 ++ WebApplication/Post.aspx.designer.cs | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/AssemblyVersion.cs b/AssemblyVersion.cs index 21cc6b6..f346fac 100644 --- a/AssemblyVersion.cs +++ b/AssemblyVersion.cs @@ -16,5 +16,5 @@ using System.Reflection; // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("3.0.1.445")] -[assembly: AssemblyFileVersion("3.0.1.445")] +[assembly: AssemblyVersion("3.0.1.446")] +[assembly: AssemblyFileVersion("3.0.1.446")] diff --git a/WebApplication/Post.aspx.cs b/WebApplication/Post.aspx.cs index 2680d5b..388e66b 100644 --- a/WebApplication/Post.aspx.cs +++ b/WebApplication/Post.aspx.cs @@ -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; diff --git a/WebApplication/Post.aspx.designer.cs b/WebApplication/Post.aspx.designer.cs index 26084a7..b26b219 100644 --- a/WebApplication/Post.aspx.designer.cs +++ b/WebApplication/Post.aspx.designer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:2.0.50727.4016 +// Runtime Version:2.0.50727.4927 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated.