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 f00f1d8 commit 19dd3e4Copy full SHA for 19dd3e4
src/Downloader.php
@@ -423,6 +423,9 @@ private static function generateCacheKey(string $url): string
423
$url = preg_replace('{^https://api.github.com/repos/([^/]++/[^/]++)/contents/}', '$1/', $url);
424
$url = preg_replace('{^https://raw.githubusercontent.com/([^/]++/[^/]++)/}', '$1/', $url);
425
426
- return preg_replace('{[^a-z0-9.]}i', '-', $url);
+ $key = preg_replace('{[^a-z0-9.]}i', '-', $url);
427
+
428
+ // eCryptfs can have problems with filenames longer than around 143 chars
429
+ return \strlen($key) > 140 ? md5($url) : $key;
430
}
431
0 commit comments