diff --git a/src/nhttpd/yhttpd_mods/mod_yparser.cpp b/src/nhttpd/yhttpd_mods/mod_yparser.cpp index 35464dbe4..6d3670553 100644 --- a/src/nhttpd/yhttpd_mods/mod_yparser.cpp +++ b/src/nhttpd/yhttpd_mods/mod_yparser.cpp @@ -371,8 +371,9 @@ std::string CyParser::cgi_cmd_parsing(CyhookHandler *hh, // ini-set:;;[~open|save|cache] // if-empty:~~ // if-equal:~~~ (left_value == right_value?) -// if-not-equal:~~~ (left_val!e == right_value?) +// if-not-equal:~~~ (left_value == right_value?) // if-file-exists:~~ +// find-exec: // include-block:;[;] // var-get: // var-set:= @@ -427,6 +428,8 @@ std::string CyParser::YWeb_cgi_cmd(CyhookHandler *hh, std::string ycmd) { yresult = (access(if_value, R_OK) == 0) ? if_then : if_else; } + } else if (ycmd_type == "find-exec") { + yresult = find_executable(ycmd_name.c_str()); } else if (ycmd_type == "include") { std::string ytmp; std::fstream fin(ycmd_name.c_str(), std::fstream::in);