Skip to content

Commit

Permalink
Fix some bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Incognito committed Dec 24, 2020
1 parent b8632b6 commit 8b640a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/serverconfighelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ QJsonObject ServerConfigHelper::getShadowsocksRServerConfigFromUrl(
QString server, const QString& subscriptionUrl) {
server = server.mid(6);
QString serverUrl = QByteArray::fromBase64(
server.toUtf8());
server.toUtf8(), QByteArray::AbortOnBase64DecodingErrors);
// Failed to parse the SSR URL
if (!serverUrl.size()) {
serverUrl = QByteArray::fromBase64(server.replace('_', '/').toUtf8(),
Expand Down

0 comments on commit 8b640a8

Please sign in to comment.