mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-19 09:36:47 +10:00
Fix "500: Encoding error" on blame view
This change forces encoding of source line data into UTF-8 and thus fixes the encoding error at least partially. The issue is described in https://gitlab.com/gitlab-org/gitlab-ce/issues/894
This commit is contained in:
@@ -30,5 +30,5 @@
|
||||
%code
|
||||
:erb
|
||||
<% lines.each do |line| %>
|
||||
<%= highlight(@blob.name, line, true).html_safe %>
|
||||
<%= highlight(@blob.name, line.force_encoding("utf-8"), true).html_safe %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user