瀏覽代碼

Fixed paste edits not working if no password submitted

master
Teknikode 10 月之前
父節點
當前提交
f42547174a
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      Teknik/Areas/Paste/Controllers/PasteController.cs

+ 2
- 1
Teknik/Areas/Paste/Controllers/PasteController.cs 查看文件

@@ -353,7 +353,8 @@ namespace Teknik.Areas.Paste.Controllers
paste.IV = iv;
paste.BlockSize = _config.PasteConfig.BlockSize;

paste.HashedPassword = PasteHelper.HashPassword(paste.Key, password);
if (!string.IsNullOrEmpty(password))
paste.HashedPassword = PasteHelper.HashPassword(paste.Key, password);
paste.FileName = fileName;
paste.Title = model.Title;
paste.Syntax = model.Syntax;

Loading…
取消
儲存