From b58cbd41359fa7b3d506b8f7f8ee1d7a7222cd62 Mon Sep 17 00:00:00 2001 From: satbaby Date: Sat, 22 Dec 2012 17:19:43 +0100 Subject: [PATCH] src/nhttpd/yhttpd_core/yrequest.cpp: maybe needed, supplement to 289e927e049da0219d0d0069d1fb73ab70d7384a --- src/nhttpd/yhttpd_core/yrequest.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/nhttpd/yhttpd_core/yrequest.cpp b/src/nhttpd/yhttpd_core/yrequest.cpp index 3e281b20d..f684f9ddd 100644 --- a/src/nhttpd/yhttpd_core/yrequest.cpp +++ b/src/nhttpd/yhttpd_core/yrequest.cpp @@ -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