mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-03 02:02:24 +00:00
Fix a bug which will cause /getruleset for Surge unable to fetch data
Add descriptions in pref.ini.
This commit is contained in:
2 files changed
+3
-2
No files matched your search
+1
-1
@@ -59,7 +59,7 @@ std::string getRuleset(RESPONSE_CALLBACK_ARGS)
|
||||
std::string url = urlsafe_base64_decode(getUrlArg(argument, "url")), type = getUrlArg(argument, "type"), group = urlsafe_base64_decode(getUrlArg(argument, "group"));
|
||||
std::string output_content;
|
||||
|
||||
if(!url.size() || !type.size() || !group.size() || (type != "1" && type != "2"))
|
||||
if(!url.size() || !type.size() || (type == "2" && !group.size()) || (type != "1" && type != "2"))
|
||||
{
|
||||
*status_code = 400;
|
||||
return "Invalid request!";
|
||||
|
||||
Reference in new issue
Block a user