summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-11-25 06:17:20 +0000
committerGo MAEDA <maeda@farend.jp>2024-11-25 06:17:20 +0000
commitb437ebda4921c8dd18426c9d8e4541a60279bfa2 (patch)
tree5eda8d40c8663a45850fd6a96491e44abac4d6f2
parent0b2b45f063023bd6237a3ed2676d9b4b7e8845e2 (diff)
downloadredmine-b437ebda4921c8dd18426c9d8e4541a60279bfa2.tar.gz
redmine-b437ebda4921c8dd18426c9d8e4541a60279bfa2.zip
FrozenError when using SQLite3 gem version 2.0.0 or later (#41860).
Patch by Go MAEDA (user:maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@23308 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/models/wiki_content_version.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/wiki_content_version.rb b/app/models/wiki_content_version.rb
index 78e056649..79941bf41 100644
--- a/app/models/wiki_content_version.rb
+++ b/app/models/wiki_content_version.rb
@@ -83,8 +83,7 @@ class WikiContentVersion < ApplicationRecord
# uncompressed data
data
end
- str.force_encoding("UTF-8")
- str
+ (+str).force_encoding('UTF-8')
end
end