mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #8689 from ssi91/handle-file-prefix
Handle file prefix
This commit is contained in:
commit
f08475b486
@ -15,6 +15,7 @@ Bugfixes:
|
|||||||
* Type Checker: Fix several internal errors by performing size and recursiveness checks of types before the full type checking.
|
* Type Checker: Fix several internal errors by performing size and recursiveness checks of types before the full type checking.
|
||||||
* Type Checker: Fix internal error when assigning to empty tuples.
|
* Type Checker: Fix internal error when assigning to empty tuples.
|
||||||
* Type Checker: Perform recursiveness check on structs declared at the file level.
|
* Type Checker: Perform recursiveness check on structs declared at the file level.
|
||||||
|
* Standard Json Input: Fix error when using prefix ``file://`` in the field ``urls``.
|
||||||
|
|
||||||
Build System:
|
Build System:
|
||||||
* soltest.sh: ``SOLIDITY_BUILD_DIR`` is no longer relative to ``REPO_ROOT`` to allow for build directories outside of the source tree.
|
* soltest.sh: ``SOLIDITY_BUILD_DIR`` is no longer relative to ``REPO_ROOT`` to allow for build directories outside of the source tree.
|
||||||
|
@ -953,7 +953,10 @@ bool CommandLineInterface::processInput()
|
|||||||
"ReadFile callback used as callback kind " +
|
"ReadFile callback used as callback kind " +
|
||||||
_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);
|
auto canonicalPath = boost::filesystem::weakly_canonical(path);
|
||||||
bool isAllowed = false;
|
bool isAllowed = false;
|
||||||
for (auto const& allowedDir: m_allowedDirectories)
|
for (auto const& allowedDir: m_allowedDirectories)
|
||||||
|
Loading…
Reference in New Issue
Block a user