We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 368ef1d commit a955852Copy full SHA for a955852
src/dotnet-cnblogs/Command/CommandProcessFile.cs
@@ -3,6 +3,7 @@
3
using System.ComponentModel.DataAnnotations;
4
using System.IO;
5
using System.Linq;
6
+using System.Web;
7
using Dotnetcnblog.TagHandlers;
8
using Dotnetcnblog.Utils;
9
using McMaster.Extensions.CommandLineUtils;
@@ -59,7 +60,7 @@ public void Execute(CommandContext context)
59
60
61
try
62
{
- var imgPhyPath = Path.Combine(fileDir!, img);
63
+ var imgPhyPath = HttpUtility.UrlDecode(Path.Combine(fileDir!, img));
64
if (File.Exists(imgPhyPath))
65
66
var imgUrl = ImageUploadHelper.Upload(imgPhyPath);
0 commit comments