Skip to content

Commit 2952558

Browse files
authored
Merge pull request #808 from tricknotes/fix-sprockets-base-unescape-for-3.x
Fix `Sprockets::Base#unescape` to avoid unexpected change landed in 3.7.4
2 parents fb92f7b + 86ea3e2 commit 2952558

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sprockets/legacy.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def matches_filter(filters, logical_path, filename)
155155
end
156156

157157
def unescape(str)
158-
URIUtils::URI_PARSER.unescape(str)
158+
str = URIUtils::URI_PARSER.unescape(str)
159159
str.force_encoding(Encoding.default_internal) if Encoding.default_internal
160160
str
161161
end

0 commit comments

Comments
 (0)