Skip to content

Commit

Permalink
Merge pull request #808 from tricknotes/fix-sprockets-base-unescape-f…
Browse files Browse the repository at this point in the history
…or-3.x

Fix `Sprockets::Base#unescape` to avoid unexpected change landed in 3.7.4
  • Loading branch information
byroot authored Sep 19, 2024
2 parents fb92f7b + 86ea3e2 commit 2952558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sprockets/legacy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def matches_filter(filters, logical_path, filename)
end

def unescape(str)
URIUtils::URI_PARSER.unescape(str)
str = URIUtils::URI_PARSER.unescape(str)
str.force_encoding(Encoding.default_internal) if Encoding.default_internal
str
end
Expand Down

0 comments on commit 2952558

Please sign in to comment.