mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-17 01:51:52 +03:00
Makes operator to use string_view
This commit is contained in:
@@ -56,7 +56,7 @@ bool PmFromFile::init(const std::string &config, std::string *error) {
|
||||
iss = new std::stringstream(client.content);
|
||||
} else {
|
||||
std::string err;
|
||||
std::string resource = utils::find_resource(m_param, config, &err);
|
||||
std::string resource = utils::find_resource(m_param, config.c_str(), &err);
|
||||
iss = new std::ifstream(resource, std::ios::in);
|
||||
|
||||
if (((std::ifstream *)iss)->is_open() == false) {
|
||||
|
||||
Reference in New Issue
Block a user