diff options
author | Igor Pavlov <ipavlov@users.sourceforge.net> | 2019-03-04 04:27:14 +0300 |
---|---|---|
committer | Kornel <kornel@geekhood.net> | 2019-03-04 04:27:14 +0300 |
commit | 4a960640a340a848a2d2c27f19b339c2c3d3f734 (patch) | |
tree | f09fc7b1b03e40c740f78258d72b480b92cd17ce /CPP/7zip/UI/Common/ArchiveOpenCallback.cpp | |
parent | 5b2a99c548a6c9c90d4cc63cddca29af009c2479 (diff) |
19.0019.00
Diffstat (limited to 'CPP/7zip/UI/Common/ArchiveOpenCallback.cpp')
-rw-r--r-- | CPP/7zip/UI/Common/ArchiveOpenCallback.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/CPP/7zip/UI/Common/ArchiveOpenCallback.cpp b/CPP/7zip/UI/Common/ArchiveOpenCallback.cpp index fd2807ac..4d9d9e14 100644 --- a/CPP/7zip/UI/Common/ArchiveOpenCallback.cpp +++ b/CPP/7zip/UI/Common/ArchiveOpenCallback.cpp @@ -102,7 +102,14 @@ STDMETHODIMP COpenCallbackImp::GetStream(const wchar_t *name, IInStream **inStre // if (!allowAbsVolPaths) if (!IsSafePath(name2)) return S_FALSE; - + + // #ifdef _WIN32 + // we don't want to support wildcards in names here here + if (name2.Find(L'?') >= 0 || + name2.Find(L'*') >= 0) + return S_FALSE; + // #endif + #endif |