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

@ -16,5 +16,5 @@ using System.Reflection;
// //
// You can specify all the values or you can default the Revision and Build Numbers // You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
[assembly: AssemblyVersion("3.0.1.445")] [assembly: AssemblyVersion("3.0.1.446")]
[assembly: AssemblyFileVersion("3.0.1.445")] [assembly: AssemblyFileVersion("3.0.1.446")]

View file

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

View file

@ -1,7 +1,7 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // 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 // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.