We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 309b849 commit 96feff7Copy full SHA for 96feff7
src/Lfm.php
@@ -184,13 +184,19 @@ public function allowShareFolder()
184
/**
185
* Translate file name to make it compatible on Windows.
186
*
187
- * @param string $input Any string.
188
- * @return string
+ * @param array|string $input
+ * @return array|string
189
*/
190
public function translateFromUtf8($input)
191
{
192
if ($this->isRunningOnWindows()) {
193
- $input = iconv('UTF-8', mb_detect_encoding($input), $input);
+ if (is_array($input)) {
194
+ for($i = 0; $i < count($input); $i++) {
195
+ $input[$i] = iconv('UTF-8', mb_detect_encoding($input[$i]), $input[$i]);
196
+ }
197
+ } else {
198
+ $input = iconv('UTF-8', mb_detect_encoding($input), $input);
199
200
}
201
202
return $input;
0 commit comments