Bug fixes

Fix compatibility issue for some ShadowsocksD subscription.
Fix some cross-platform configuration file reader bugs.
Add upload to Gist function.
Add append MANAGED-CONFIG to Surge configuration function.
Clean up codes.
This commit is contained in:
Tindy X committed 2019-11-15 14:10:27 +08:00
1 parent 2fbac6e520
commit 2b649ec25d
11 files changed
+351 -274

No files matched your search

+1 -1
View File
@@ -478,7 +478,7 @@ std::string urlsafe_base64_decode(std::string encoded_string)
std::string urlsafe_base64_encode(std::string string_to_encode)
{
return replace_all_distinct(replace_all_distinct(base64_encode(string_to_encode), "+", "-"), "/", "_");
return replace_all_distinct(replace_all_distinct(replace_all_distinct(base64_encode(string_to_encode), "+", "-"), "/", "_"), "=", "");
}
std::string getMD5(std::string data)