mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
Try to defend against chroot paths in store matching derivation paths
This commit is contained in:
parent
52dde68a85
commit
6c91f23ca5
@ -51,7 +51,7 @@ case "$QUERY_STRING" in
|
||||
*.narinfo)
|
||||
hash=${QUERY_STRING%.narinfo}
|
||||
hash=${hash#/}
|
||||
path="$(echo "$STORE_DIR/$hash-"* )"
|
||||
path="$(echo "$STORE_DIR/$hash-"* | sort | head -n 1)"
|
||||
if [ -n "$path" ] && [ -e "$path" ]; then
|
||||
header
|
||||
info="$(
|
||||
|
Loading…
Reference in New Issue
Block a user