mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 06:05:48 +00:00
Shell Folders: Reject invalid characters (#2328)
Reject invalid input filename characters by using shell32!SHLimitInputEdit function and IItemNameLimits interface. Improve SHLimitInputEdit to sanitize paste. CORE-11701
This commit is contained in:
parent
0a7a747d87
commit
bc1519dd87
7 changed files with 219 additions and 10 deletions
|
@ -697,6 +697,19 @@ IStream* WINAPI SHGetViewStream(LPCITEMIDLIST, DWORD, LPCTSTR, LPCTSTR, LPCTSTR)
|
|||
|
||||
EXTERN_C HRESULT WINAPI SHCreateSessionKey(REGSAM samDesired, PHKEY phKey);
|
||||
|
||||
/*****************************************************************************
|
||||
* INVALID_FILETITLE_CHARACTERS
|
||||
*/
|
||||
|
||||
#define INVALID_FILETITLE_CHARACTERSA "\\/:*?\"<>|"
|
||||
#define INVALID_FILETITLE_CHARACTERSW L"\\/:*?\"<>|"
|
||||
|
||||
#ifdef UNICODE
|
||||
#define INVALID_FILETITLE_CHARACTERS INVALID_FILETITLE_CHARACTERSW
|
||||
#else
|
||||
#define INVALID_FILETITLE_CHARACTERS INVALID_FILETITLE_CHARACTERSA
|
||||
#endif
|
||||
|
||||
/*****************************************************************************
|
||||
* Shell Link
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue