Commit 9f3610ad authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: fix url_get_filename() if filename with quotes

parent cf13084b
......@@ -950,7 +950,8 @@ url_get_filename()
local cd="$(url_get_header "$URL" "Content-Disposition")"
if echo "$cd" | grep -q "filename=" ; then
#Content-Disposition: attachment; filename=postman-linux-x64.tar.gz
echo "$cd" | sed -e 's|.*filename=||'
#content-disposition: attachment; filename="code-1.77.1-1680651749.el7.x86_64.rpm"
echo "$cd" | sed -e 's|.*filename=||' -e 's|^"||' -e 's|"$||'
return
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