diff --git a/AssemblyVersion.cs b/AssemblyVersion.cs index a4ea10e..5228d9f 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.2.514")] -[assembly: AssemblyFileVersion("3.0.2.514")] +[assembly: AssemblyVersion("3.0.2.515")] +[assembly: AssemblyFileVersion("3.0.2.515")] diff --git a/WebApplication/Search.aspx.cs b/WebApplication/Search.aspx.cs index d1243ef..321ada8 100644 --- a/WebApplication/Search.aspx.cs +++ b/WebApplication/Search.aspx.cs @@ -109,14 +109,13 @@ namespace ScrewTurn.Wiki { protected void btnGo_Click(object sender, EventArgs e) { // Redirect firing the search string query = ScrewTurn.Wiki.SearchEngine.Tools.RemoveDiacriticsAndPunctuation(txtQuery.Text, false); - if(query.Length > 0) { - UrlTools.Redirect(UrlTools.BuildUrl("Search.aspx?Query=", Tools.UrlEncode(txtQuery.Text), - "&SearchUncategorized=", chkUncategorizedPages.Checked ? "1" : "0", - "&Categories=", GetCategories(), - "&Mode=", GetMode(), - chkAllNamespaces.Checked ? "&AllNamespaces=1" : "", - chkFilesAndAttachments.Checked ? "&FilesAndAttachments=1" : "")); - } + + UrlTools.Redirect(UrlTools.BuildUrl("Search.aspx?Query=", Tools.UrlEncode(txtQuery.Text), + "&SearchUncategorized=", chkUncategorizedPages.Checked ? "1" : "0", + "&Categories=", GetCategories(), + "&Mode=", GetMode(), + chkAllNamespaces.Checked ? "&AllNamespaces=1" : "", + chkFilesAndAttachments.Checked ? "&FilesAndAttachments=1" : "")); } ///