Commit 5875aff
committed
URI.encode has been removed from Ruby 3
Image caching were not working because the Image model silently decided
all image were "internal": the URI.encode (aka URI.escape) method does
not exist anymore in Ruby 3, which raised an error which where ignored
by the "rescue" line.
Instead of doing "URI.parse(URI.encode(str))", we are just doing
"URI.join(str)", because the join method converts firt the str to
RFC3986.
As this method does not raise error, the "rescue" part has been removed
too.1 parent ee9cf0c commit 5875aff
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | 51 | | |
54 | 52 | | |
55 | 53 | | |
56 | | - | |
| 54 | + | |
57 | 55 | | |
58 | 56 | | |
59 | 57 | | |
| |||
0 commit comments