mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
src/nhttpd/yhttpd_core/yrequest.cpp: maybe needed, supplement to cc57ac1e3d
Origin commit data
------------------
Branch: ni/coolstream
Commit: b58cbd4135
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-12-22 (Sat, 22 Dec 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
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