mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
- yparser: remove useless halfhearted script-check
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user