Skip to content

Commit

Permalink
Version 3.3.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rxtur committed Feb 8, 2019
1 parent 5b348c3 commit 612164e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
4 changes: 2 additions & 2 deletions BlogEngine/BlogEngine.Core/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("BlogEngine.NET")]
[assembly: AssemblyCopyright("Copyright @ 2007-2018")]
[assembly: AssemblyCopyright("Copyright @ 2007-2019")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: CLSCompliant(false)]
[assembly: ComVisible(false)]
[assembly: AllowPartiallyTrustedCallers]
[assembly: AssemblyVersion("3.3.6.0")]
[assembly: AssemblyVersion("3.3.7.0")]
[assembly: SecurityRules(SecurityRuleSet.Level1)]
13 changes: 8 additions & 5 deletions BlogEngine/BlogEngine.NET/Custom/Controls/PostList.ascx.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
namespace UserControls
{
using BlogEngine.Core;
using BlogEngine.Core.Web.Controls;
using System;
using System.Collections.Generic;
using System.Web.UI;

using BlogEngine.Core;
using BlogEngine.Core.Web.Controls;

/// <summary>
/// The post list user control.
/// </summary>
Expand Down Expand Up @@ -122,10 +121,14 @@ private void BindPosts()
return;
}

var path = string.Format("{0}Custom/Themes/{1}/PostView.ascx", Utils.ApplicationRelativeWebRoot, BlogSettings.Instance.GetThemeWithAdjustments(this.Request.QueryString["theme"]));
var theme = Request.QueryString["theme"];
if(!string.IsNullOrEmpty(theme))
theme = theme.Replace(".", "").Replace("/", "").Replace("\\", "");

var path = string.Format("{0}Custom/Themes/{1}/PostView.ascx", Utils.ApplicationRelativeWebRoot, BlogSettings.Instance.GetThemeWithAdjustments(theme));
var counter = 0;

if(!System.IO.File.Exists(Server.MapPath(path)))
if (!System.IO.File.Exists(Server.MapPath(path)))
path = string.Format("{0}Custom/Controls/Defaults/PostView.ascx", Utils.ApplicationRelativeWebRoot);

foreach (Post post in visiblePosts.GetRange(index, stop))
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
This repository provides latest source code for BlogEngine.NET project and since Codeplex is shutting down, we don't release any version on Codeplex anymore.
This repository provides latest source code for BlogEngine.NET project.
Code regularly updated with security patches but there no plans to add new functionality.
If you are looking for latest reincarnation in active development, please take a look at [Blogifier](https://github.com/blogifierdotnet/Blogifier) as modern cross-platform .NET Core alternative.


<br>
<br>
Expand Down

0 comments on commit 612164e

Please sign in to comment.