mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-03 18:24:58 +00:00
Enhancements
Fix request arguments to alias are not passed to redirect location (#681). Fix crash if name argument is missing in getProfile interface. Fix bad webGet retry logic.
This commit is contained in:
3 files changed
+16
-4
No files matched your search
@@ -1162,13 +1162,13 @@ std::string getProfile(RESPONSE_CALLBACK_ARGS)
|
||||
|
||||
std::string name = urlDecode(getUrlArg(argument, "name")), token = urlDecode(getUrlArg(argument, "token"));
|
||||
string_array profiles = split(name, "|");
|
||||
name = profiles[0];
|
||||
if(token.empty() || name.empty())
|
||||
if(token.empty() || profiles.empty())
|
||||
{
|
||||
*status_code = 403;
|
||||
return "Forbidden";
|
||||
}
|
||||
std::string profile_content;
|
||||
name = profiles[0];
|
||||
/*if(vfs::vfs_exist(name))
|
||||
{
|
||||
profile_content = vfs::vfs_get(name);
|
||||
|
||||
Reference in new issue
Block a user