Commit 6ddf4567f43497a10e7faddf98d0a5d467bf043c

Authored by Riyad Preukschas
1 parent 9e8aadb0

Don't escape Html in patches

Fixes #2036
app/controllers/commit_controller.rb
... ... @@ -26,7 +26,7 @@ class CommitController < ProjectResourceController
26 26 end
27 27 end
28 28  
29   - format.patch
  29 + format.patch { render text: @commit.to_patch }
30 30 end
31 31 end
32 32 end
... ...
app/views/commit/show.patch.erb
... ... @@ -1 +0,0 @@
1   -<%= @commit.to_patch %>