diff --git a/core/AmUtils.cpp b/core/AmUtils.cpp index 1b799678..be718455 100644 --- a/core/AmUtils.cpp +++ b/core/AmUtils.cpp @@ -564,8 +564,13 @@ int create_unix_socket(const string& path) string file_extension(const string& path) { string::size_type pos = path.rfind('.'); - if(pos == string::npos) - return ""; + if(pos == string::npos){ + pos = path.rfind("%2E"); + + if(pos == string::npos) + return ""; + return path.substr(pos+3,string::npos); + } return path.substr(pos+1,string::npos); }