yparser: remove useless halfhearted script-check

Origin commit data
------------------
Branch: ni/coolstream
Commit: 799fe4b78a
Author: vanhofen <vanhofen@gmx.de>
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
This commit is contained in:
vanhofen
2016-01-29 12:27:02 +01:00
parent 320d442435
commit 6f539a1c87

View File

@@ -528,10 +528,14 @@ std::string CyParser::YWeb_cgi_cmd(CyhookHandler *hh, std::string ycmd) {
} else } else
yresult = "ycgi-type unknown"; yresult = "ycgi-type unknown";
} else if (!hh->ParamList[ycmd].empty()) { } else if (!hh->ParamList[ycmd].empty()) {
#if 0
if ((hh->ParamList[ycmd]).find("script") == std::string::npos) if ((hh->ParamList[ycmd]).find("script") == std::string::npos)
yresult = hh->ParamList[ycmd]; yresult = hh->ParamList[ycmd];
else else
yresult = "<!--Not Allowed script in " + ycmd + " -->"; yresult = "<!--Not Allowed script in " + ycmd + " -->";
#else
yresult = hh->ParamList[ycmd];
#endif
} }
return yresult; return yresult;