From 2073d0ef25d3a68d11075a93781a84b9d0080be5 Mon Sep 17 00:00:00 2001 From: Tindy X <49061470+tindy2013@users.noreply.github.com> Date: Mon, 27 Jan 2020 20:40:50 +0800 Subject: [PATCH] Fix URL argument parsing error --- src/misc.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/misc.cpp b/src/misc.cpp index 32d4522..8a82427 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -441,6 +441,9 @@ std::string getUrlArg(std::string url, std::string request) return std::string(); } */ + std::string::size_type spos = url.find("?"); + if(spos != url.npos) + url.erase(0, spos + 1); string_array vArray, arglist = split(url, "&"); for(std::string &x : arglist)