Adds suppor to the REQUEST_FILENAME variable

This commit is contained in:
Felipe Zimmerle
2015-07-22 01:33:46 -03:00
parent 94eddfcf48
commit 97c0d561f6
2 changed files with 46 additions and 0 deletions

View File

@@ -220,6 +220,7 @@ int Assay::processURI(const char *uri, const char *protocol,
store_variable("QUERY_STRING", std::string(strchr(m_uri, '?')));
}
store_variable("PATH_INFO", path_info);
store_variable("REQUEST_FILENAME", path_info);
size_t offset = path_info.find_last_of("/\\");
if (offset != std::string::npos) {