From 6f539a1c87ac1b6ee0fb12c98d15f04bdfa5b500 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 29 Jan 2016 12:27:02 +0100 Subject: [PATCH] yparser: remove useless halfhearted script-check Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/799fe4b78a8b83f20dfd3ff86413ecc142944027 Author: vanhofen Date: 2016-01-29 (Fri, 29 Jan 2016) Origin message was: ------------------ - yparser: remove useless halfhearted script-check ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/nhttpd/yhttpd_mods/mod_yparser.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/nhttpd/yhttpd_mods/mod_yparser.cpp b/src/nhttpd/yhttpd_mods/mod_yparser.cpp index fb42c643d..b75231fc7 100644 --- a/src/nhttpd/yhttpd_mods/mod_yparser.cpp +++ b/src/nhttpd/yhttpd_mods/mod_yparser.cpp @@ -528,10 +528,14 @@ std::string CyParser::YWeb_cgi_cmd(CyhookHandler *hh, std::string ycmd) { } else yresult = "ycgi-type unknown"; } else if (!hh->ParamList[ycmd].empty()) { +#if 0 if ((hh->ParamList[ycmd]).find("script") == std::string::npos) yresult = hh->ParamList[ycmd]; else yresult = ""; +#else + yresult = hh->ParamList[ycmd]; +#endif } return yresult;