OSDN Git Service
(root)
/
redminele
/
redmine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2201a34
)
Fixes error in RepositoriesHelper#replace_invalid_utf8 when given nil.
author
Jean-Philippe Lang
<jp_lang@yahoo.fr>
Sun, 20 Mar 2011 11:33:03 +0000
(11:33 +0000)
committer
Jean-Philippe Lang
<jp_lang@yahoo.fr>
Sun, 20 Mar 2011 11:33:03 +0000
(11:33 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5170
e93f8b46
-1217-0410-a6f0-
8f06a7374b81
app/helpers/repositories_helper.rb
patch
|
blob
|
history
diff --git
a/app/helpers/repositories_helper.rb
b/app/helpers/repositories_helper.rb
index
0dc450b
..
80887a9
100644
(file)
--- a/
app/helpers/repositories_helper.rb
+++ b/
app/helpers/repositories_helper.rb
@@
-148,6
+148,7
@@
module RepositoriesHelper
private :to_utf8_internal
def replace_invalid_utf8(str)
+ return str if str.nil?
if str.respond_to?(:force_encoding)
str.force_encoding('UTF-8')
if ! str.valid_encoding?