mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
sanitize load_text() path
This commit is contained in:
parent
155cf759eb
commit
6ad068494f
@ -632,7 +632,9 @@ namespace crow
|
||||
|
||||
inline std::string load_text(const std::string& filename)
|
||||
{
|
||||
return detail::get_loader_ref()(filename);
|
||||
std::string filename_sanitized(filename);
|
||||
utility::sanitize_filename(filename_sanitized);
|
||||
return detail::get_loader_ref()(filename_sanitized);
|
||||
}
|
||||
|
||||
inline template_t load(const std::string& filename)
|
||||
|
Loading…
Reference in New Issue
Block a user