mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Logo: don't parse file paths as builtin logo name
This commit is contained in:
@@ -436,6 +436,13 @@ static void logoPrintNone(void)
|
||||
|
||||
static bool logoPrintBuiltinIfExists(const FFstrbuf* name, FFLogoSize size)
|
||||
{
|
||||
if(name->chars[0] == '~' || name->chars[0] == '.' || name->chars[0] == '/'
|
||||
#if _WIN32
|
||||
|| (ffCharIsEnglishAlphabet(name->chars[0]) && name->chars[1] == ':') // Windows drive letter
|
||||
#endif
|
||||
)
|
||||
return false; // Paths
|
||||
|
||||
if(ffStrbufIgnCaseEqualS(name, "none"))
|
||||
{
|
||||
logoPrintNone();
|
||||
|
||||
Reference in New Issue
Block a user