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:
Tindy X committed 2023-12-04 11:49:07 +08:00
1 parent d9ff11146d
commit 2f820b81c4
3 files changed
+16 -4

No files matched your search

+2 -2
View File
@@ -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);