forked from Trustie/forgeplus
fixed:代码回退
This commit is contained in:
parent
bf4ff93ed9
commit
f77b2ae182
|
|
@ -22,7 +22,7 @@ module ProjectsHelper
|
|||
end
|
||||
|
||||
def render_download_file_url(owner, repository, filepath, ref)
|
||||
[base_url, "/api/#{owner&.login}/#{repository.identifier}/raw/#{URI.escape(filepath)}?ref=#{URI.escape(ref)}"].join
|
||||
[base_url, "/api/#{owner&.login}/#{repository.identifier}/raw/#{CGI.escape(filepath)}?ref=#{CGI.escape(ref)}"].join
|
||||
end
|
||||
|
||||
def render_http_url(project)
|
||||
|
|
|
|||
Loading…
Reference in New Issue