Commit 66c424d
committed
Load
`cgi/util` will warn on Ruby 3.5. `cgi/escape` is available since Ruby 2.4,
but to use CGI.unescape* methods on Ruby 3.4 and earlier, `cgi/util` must still be required.
There's only one place in rdoc that uses such a method, so only one place needs to handle earlier rubies.
https://bugs.ruby-lang.org/issues/21258cgi/escape instead of cgi/util
1 parent 8417536 commit 66c424d
File tree
4 files changed
+6
-4
lines changed- lib/rdoc
- code_object
- context
- markup
4 files changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
| 285 | + | |
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
0 commit comments