From f69c0ad39fe8fb8b4567f399dcc69eeeedb824fd Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 18 Mar 2022 09:26:28 -0400 Subject: [PATCH] Fix issue processwire/processwire-issues#1543 --- wire/modules/LanguageSupport/ProcessLanguageTranslator.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wire/modules/LanguageSupport/ProcessLanguageTranslator.module b/wire/modules/LanguageSupport/ProcessLanguageTranslator.module index 8c23f1b5..f547ac46 100644 --- a/wire/modules/LanguageSupport/ProcessLanguageTranslator.module +++ b/wire/modules/LanguageSupport/ProcessLanguageTranslator.module @@ -761,7 +761,8 @@ class ProcessLanguageTranslator extends Process { foreach($dirIterator as $file) { if($file->isDot()) continue; - if(substr($file->getBasename(), 0, 1) == '.') continue; // skip hidden; + $c = substr($file->getBasename(), 0, 1); + if($c === '.' || $c === '-' || $c === '\\') continue; // skip hidden if($file->isDir()) { $pathname = $file->getPathname(); if(strpos($pathname, $assetsDir) !== false) continue; // avoid descending into /site/assets/