handle file prefix

add the description to the changelog

fix: use the right method to search in string

follow the codestyle

using tabs

delete redundant declaration

implement the handling inline

Update Changelog.md

Co-Authored-By: Leonardo <leo@ethereum.org>
This commit is contained in:
ssi91andLeonardo committed 2020-04-27 21:02:39 +07:00
1 parent 99aa821410
commit 3d772edc7a
2 files changed
+5 -1

No files matched your search

+4 -1
View File
@@ -953,7 +953,10 @@ bool CommandLineInterface::processInput()
"ReadFile callback used as callback kind " +
_kind
));
auto path = boost::filesystem::path(_path);
string validPath = _path;
if (validPath.find("file://") == 0)
validPath.erase(0, 7);
auto path = boost::filesystem::path(validPath);
auto canonicalPath = boost::filesystem::weakly_canonical(path);
bool isAllowed = false;
for (auto const& allowedDir: m_allowedDirectories)