mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-11 10:26:57 +02:00
revert back to Uri.EscapeDataString
This commit is contained in:
parent
62babc0de5
commit
bb705e17a6
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
using System.Net;
|
using System;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace DiscordChatExporter.Core.Utils;
|
namespace DiscordChatExporter.Core.Utils;
|
||||||
|
@ -18,12 +18,12 @@ public static class Url
|
||||||
var separatorIndex = filePath.IndexOfAny([':', '/', '\\'], position);
|
var separatorIndex = filePath.IndexOfAny([':', '/', '\\'], position);
|
||||||
if (separatorIndex < 0)
|
if (separatorIndex < 0)
|
||||||
{
|
{
|
||||||
buffer.Append(WebUtility.UrlEncode(filePath[position..]));
|
buffer.Append(Uri.EscapeDataString(filePath[position..]));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Append the segment
|
// Append the segment
|
||||||
buffer.Append(WebUtility.UrlEncode(filePath[position..separatorIndex]));
|
buffer.Append(Uri.EscapeDataString(filePath[position..separatorIndex]));
|
||||||
|
|
||||||
// Append the separator
|
// Append the separator
|
||||||
buffer.Append(
|
buffer.Append(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue