Skip to content

Commit 93d9667

Browse files
Reject blank directory names
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent e206f4f commit 93d9667

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Flow.Launcher.Plugin/SharedCommands/FilesFolders.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ public static bool IsValidFileName(string name)
393393
/// </summary>
394394
public static bool IsValidDirectoryName(string name)
395395
{
396+
if (string.IsNullOrWhiteSpace(name)) return false;
396397
if (IsReservedName(name)) return false;
397398
var invalidChars = Path.GetInvalidPathChars().Concat(new[] { '/', '\\' }).ToArray();
398399
if (name.IndexOfAny(invalidChars) >= 0)

0 commit comments

Comments
 (0)