mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Reject blank directory names
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
e206f4f31c
commit
93d9667c04
1 changed files with 1 additions and 0 deletions
|
|
@ -393,6 +393,7 @@ namespace Flow.Launcher.Plugin.SharedCommands
|
|||
/// </summary>
|
||||
public static bool IsValidDirectoryName(string name)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(name)) return false;
|
||||
if (IsReservedName(name)) return false;
|
||||
var invalidChars = Path.GetInvalidPathChars().Concat(new[] { '/', '\\' }).ToArray();
|
||||
if (name.IndexOfAny(invalidChars) >= 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue