You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2016/09/21 15:12:39 UTC

[whimsy] branch master updated: compensate for bad encoding

This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
       new  fa05530   compensate for bad encoding
fa05530 is described below

commit fa05530266c33c52357a64907230a058f106dfb8
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Wed Sep 21 11:12:24 2016 -0400

    compensate for bad encoding
---
 www/secmail/views/actions/check-signature.json.rb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/www/secmail/views/actions/check-signature.json.rb b/www/secmail/views/actions/check-signature.json.rb
index 5d7d4d5..a59e905 100644
--- a/www/secmail/views/actions/check-signature.json.rb
+++ b/www/secmail/views/actions/check-signature.json.rb
@@ -39,6 +39,10 @@ begin
     /^gpg:\s+There is no indication that the signature belongs to the owner\.$/
   ]
 
+  unless err.valid_encoding?
+    err = err.force_encoding('windows-1252').encode('utf-8') 
+  end
+
   ignore.each {|re| err.gsub! re, ''}
 
 ensure

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].