Skip to content

Commit 7b088ef

Browse files
committed
Category img Upload v4.1.5.3
1 parent ebda19b commit 7b088ef

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Components/Categories/CategoryFunctions.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,12 +589,14 @@ public string UpdateCategoryImages(HttpContext context,string editLangCurrent)
589589
{
590590
if (ImgUtils.IsImageFile(Path.GetExtension(img)) && img != "")
591591
{
592+
var extension = Path.GetExtension(img);
592593
var fn = DnnUtils.Encrypt(img, StoreSettings.Current.Get("adminpin"));
593594
foreach (char c in System.IO.Path.GetInvalidFileNameChars())
594595
{
595596
fn = fn.Replace(c, '_');
596597
}
597-
var extension = Path.GetExtension(img);
598+
fn = extension + "-" + fn; // add extension to front, so it cannot be servered but we can add to order data.
599+
598600
var fullName = StoreSettings.Current.FolderTempMapPath.TrimEnd(Convert.ToChar("\\")) + "\\" + fn;
599601
if (File.Exists(fullName))
600602
{

Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("4.1.5.2")]
36-
[assembly: AssemblyFileVersion("4.1.5.2")]
35+
[assembly: AssemblyVersion("4.1.5.3")]
36+
[assembly: AssemblyFileVersion("4.1.5.3")]

0 commit comments

Comments
 (0)