Improving RTTYS

This commit is contained in:
stephb9959
2022-04-20 08:01:30 -07:00
parent 86d8cdda75
commit 4e5d9020ea

View File

@@ -130,6 +130,8 @@ namespace OpenWifi {
Path = RTTYS_server()->UIAssets() + Path;
}
std::cout << id << ": service path '" << Path << "'" << std::endl;
// simple test to block .. or ~ in path names.
if(Path.find("../")!=std::string::npos) {
return;