mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-31 18:15:54 +00:00
yarn2nix: fix "Incomplete URL substring sanitization"
'https://codeload.github.com' may be followed by an arbitrary host name.
This commit is contained in:
parent
a9c9441997
commit
60550330ce
@ -46,7 +46,7 @@ async function fixPkgAddMissingSha1(pkg) {
|
||||
|
||||
const [url, sha1] = pkg.resolved.split("#", 2);
|
||||
|
||||
if (sha1 || url.startsWith("https://codeload.github.com")) {
|
||||
if (sha1 || url.startsWith("https://codeload.github.com/")) {
|
||||
return pkg;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user