mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-10 21:26:07 +10:00
Prevent app crash in case if encoding failed
This commit is contained in:
@@ -11,6 +11,10 @@ module Gitlabhq
|
||||
else
|
||||
message
|
||||
end.force_encoding("utf-8")
|
||||
# Prevent app from crash cause of
|
||||
# encoding errors
|
||||
rescue
|
||||
""
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user