Commit ee820cac authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget fix: remove variable shadowing in url_get_filename()

parent 00d334e0
......@@ -1505,7 +1505,9 @@ url_get_filename()
loc=""
fi
local loc="$URL"
# If real URL resolution failed, fallback to original URL
[ -n "$loc" ] || loc="$URL"
if is_strange_url "$loc" ; then
loc="$(echo "$loc" | sed -e "s|\?.*||")"
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment