mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 15:02:56 +02:00
src/nhttpd/yhttpd_core/yrequest.cpp: maybe needed, supplement to 289e927e04
This commit is contained in:
@@ -215,16 +215,16 @@ void CWebserverRequest::analyzeURL(std::string url) {
|
||||
if(!ParameterList.empty())
|
||||
ParameterList.clear();
|
||||
// URI decode
|
||||
//url = decodeString(url);
|
||||
url = trim(url, "\r\n"); // non-HTTP-Standard: allow \r or \n in URL. Delete it.
|
||||
UrlData["fullurl"] = url;
|
||||
// split Params
|
||||
if (ySplitString(url, "?", UrlData["url"], UrlData["paramstring"])) // split pure URL and all Params
|
||||
if (ySplitString(url, "?", UrlData["url"], UrlData["paramstring"])){ // split pure URL and all Params
|
||||
ParseParams( UrlData["paramstring"]); // split params to ParameterList
|
||||
else
|
||||
}else{
|
||||
// No Params
|
||||
url = decodeString(url);
|
||||
UrlData["url"] = url;
|
||||
|
||||
}
|
||||
if (!ySplitStringLast(UrlData["url"], "/", UrlData["path"],
|
||||
UrlData["filename"])) {
|
||||
UrlData["path"] = "/"; // Set "/" if not contained
|
||||
|
Reference in New Issue
Block a user