mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-05 03:02:06 +00:00
Fix request arguments not properly handled (#661)
This commit is contained in:
12 files changed
+177
-543
No files matched your search
@@ -377,6 +377,11 @@ static qjs_fetch_Response qjs_fetch(qjs_fetch_Request request)
|
||||
return response;
|
||||
}
|
||||
|
||||
static std::string qjs_getUrlArg(const std::string &url, const std::string &request)
|
||||
{
|
||||
return getUrlArg(url, request);
|
||||
}
|
||||
|
||||
std::string getGeoIP(const std::string &address, const std::string &proxy)
|
||||
{
|
||||
return fetchFile("https://api.ip.sb/geoip/" + address, parseProxy(proxy), global.cacheConfig);
|
||||
@@ -506,7 +511,7 @@ int script_context_init(qjs::Context &context)
|
||||
.add<¤tTime>("time")
|
||||
.add<&sleepMs>("sleep")
|
||||
.add<&ShowMsgbox>("msgbox")
|
||||
.add<&getUrlArg>("getUrlArg")
|
||||
.add<&qjs_getUrlArg>("getUrlArg")
|
||||
.add<&fileGet>("fileGet")
|
||||
.add<&fileWrite>("fileWrite");
|
||||
context.eval(R"(
|
||||
|
||||
Reference in new issue
Block a user