fix: download escape

This commit is contained in:
2022-03-10 10:47:06 +08:00
parent b1c03ed5e8
commit 8d0a6d267a
3 changed files with 6 additions and 6 deletions

View File

@@ -51,6 +51,6 @@ class CompareController < ApplicationController
end
def gitea_compare(base, head)
Gitea::Repository::Commits::CompareService.call(@owner.login, @project.identifier, CGI.escape(base), CGI.escape(head), current_user.gitea_token)
Gitea::Repository::Commits::CompareService.call(@owner.login, @project.identifier, Addressable::URI.escape(base), Addressable::URI.escape(head), current_user.gitea_token)
end
end