aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorVoR0220 <rj@erisindustries.com>2017-01-12 02:03:54 +0800
committerVoR0220 <rj@erisindustries.com>2017-01-12 02:03:54 +0800
commitb6508ca992531154a572320bf8bb117e3b9294b9 (patch)
tree7e7e85b4caf10163825baa54cf109ddf2fd574a7 /libsolidity
parent4542f459f165502ed9537bb570de44640cdc4228 (diff)
downloaddexon-solidity-b6508ca992531154a572320bf8bb117e3b9294b9.tar.gz
dexon-solidity-b6508ca992531154a572320bf8bb117e3b9294b9.tar.zst
dexon-solidity-b6508ca992531154a572320bf8bb117e3b9294b9.zip
fixed
Signed-off-by: VoR0220 <rj@erisindustries.com>
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/interface/CompilerStack.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/interface/CompilerStack.cpp b/libsolidity/interface/CompilerStack.cpp
index e4c351ff..a31df584 100644
--- a/libsolidity/interface/CompilerStack.cpp
+++ b/libsolidity/interface/CompilerStack.cpp
@@ -516,6 +516,7 @@ string CompilerStack::applyRemapping(string const& _path, string const& _context
{
string context = sanitizePath(redir.context);
string prefix = sanitizePath(redir.prefix);
+
// Skip if current context is closer
if (context.length() < longestContext)
continue;
@@ -531,9 +532,8 @@ string CompilerStack::applyRemapping(string const& _path, string const& _context
longestContext = context.length();
longestPrefix = prefix.length();
- bestMatchTarget = redir.target;
+ bestMatchTarget = sanitizePath(redir.target);
}
-
string path = bestMatchTarget;
path.append(_path.begin() + longestPrefix, _path.end());
return path;