]> source.dussan.org Git - redmine.git/commitdiff
FrozenError when using SQLite3 gem version 2.0.0 or later (#41860).
authorGo MAEDA <maeda@farend.jp>
Mon, 25 Nov 2024 06:17:20 +0000 (06:17 +0000)
committerGo MAEDA <maeda@farend.jp>
Mon, 25 Nov 2024 06:17:20 +0000 (06:17 +0000)
Patch by Go MAEDA (user:maeda).

git-svn-id: https://svn.redmine.org/redmine/trunk@23308 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/wiki_content_version.rb

index 78e056649e357df984233bc26d70d7b38bdec4bb..79941bf410fb1d2f1020bdf6cbe837f1ff73de30 100644 (file)
@@ -83,8 +83,7 @@ class WikiContentVersion < ApplicationRecord
               # uncompressed data
               data
             end
-      str.force_encoding("UTF-8")
-      str
+      (+str).force_encoding('UTF-8')
     end
   end