aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface/StandardCompiler.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-01-06 06:54:59 +0800
committerGitHub <noreply@github.com>2018-01-06 06:54:59 +0800
commitcf4fdab134366d36d2614fc549eadf149e8ee82b (patch)
treebcdc2cb13d9b1e621d15571259672ce0b32da2e4 /libsolidity/interface/StandardCompiler.cpp
parent35095e9fcc53f76a1c73251497c265f399a9896c (diff)
parent9e7e312fdfc2598d0bd43efc72738845bf2e3992 (diff)
downloaddexon-solidity-cf4fdab134366d36d2614fc549eadf149e8ee82b.tar
dexon-solidity-cf4fdab134366d36d2614fc549eadf149e8ee82b.tar.gz
dexon-solidity-cf4fdab134366d36d2614fc549eadf149e8ee82b.tar.bz2
dexon-solidity-cf4fdab134366d36d2614fc549eadf149e8ee82b.tar.lz
dexon-solidity-cf4fdab134366d36d2614fc549eadf149e8ee82b.tar.xz
dexon-solidity-cf4fdab134366d36d2614fc549eadf149e8ee82b.tar.zst
dexon-solidity-cf4fdab134366d36d2614fc549eadf149e8ee82b.zip
Merge pull request #3380 from ethereum/jsonio-colon
Properly support library file names containing a colon (such as URLs).
Diffstat (limited to 'libsolidity/interface/StandardCompiler.cpp')
-rw-r--r--libsolidity/interface/StandardCompiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/interface/StandardCompiler.cpp b/libsolidity/interface/StandardCompiler.cpp
index 7aa971c6..04f5bd25 100644
--- a/libsolidity/interface/StandardCompiler.cpp
+++ b/libsolidity/interface/StandardCompiler.cpp
@@ -193,7 +193,7 @@ Json::Value formatLinkReferences(std::map<size_t, std::string> const& linkRefere
for (auto const& ref: linkReferences)
{
string const& fullname = ref.second;
- size_t colon = fullname.find(':');
+ size_t colon = fullname.rfind(':');
solAssert(colon != string::npos, "");
string file = fullname.substr(0, colon);
string name = fullname.substr(colon + 1);