more script tests

+ add cgi checks for error in script output
+ fix script_path relative to absolute
+ cgi makefile more efficient
This commit is contained in:
Hugo LAMY
2022-08-16 18:24:49 +02:00
parent ff443c80b1
commit 1ed4128afc
21 changed files with 485 additions and 109 deletions

View File

@@ -220,11 +220,6 @@ void Client::fill_script_path(std::string &path, size_t pos)
{
std::string tmp;
if (path[0] == '.')
{
path.erase(0, 1);
pos--;
}
_request.script.path = path.substr(0, pos);
_request.script.info = path.substr(pos);
}