Added git info and docs updates

This commit is contained in:
Alexey Berezhok
2025-12-26 23:01:25 +03:00
parent d098ffd3d0
commit 4d0b237127
10 changed files with 69 additions and 2 deletions

2
app.rb
View File

@@ -1150,7 +1150,7 @@ get "/buildinfofraw" do
if params["file"].nil? || !File.exist?(params["file"])
print_error_page(503, "Файл не найден")
else
if File.binary?(params["file"]) && params["file"].start_with?(File.join(Dir.pwd(), cfg.get_projects_path))
if !File.binary?(params["file"]) && params["file"].start_with?(File.join(Dir.pwd(), cfg.get_projects_path))
f_name = File.basename(params["file"])
send_file(params["file"], :filename => f_name, :type => "application/octet-stream", :disposition => 'attachment')
else