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 a90526b commit ee1bff1Copy full SHA for ee1bff1
src/Downloader.php
@@ -447,6 +447,9 @@ private static function generateCacheKey(string $url): string
447
$url = preg_replace('{^https://api.github.com/repos/([^/]++/[^/]++)/contents/}', '$1/', $url);
448
$url = preg_replace('{^https://raw.githubusercontent.com/([^/]++/[^/]++)/}', '$1/', $url);
449
450
- return preg_replace('{[^a-z0-9.]}i', '-', $url);
+ $key = preg_replace('{[^a-z0-9.]}i', '-', $url);
451
+
452
+ // eCryptfs can have problems with filenames longer than around 143 chars
453
+ return \strlen($key) > 140 ? md5($url) : $key;
454
}
455
0 commit comments