Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion refm/api/src/uri/URI
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ URI 文字列をエンコードした文字列を返します。
[[m:ERB::Util.#url_encode]],
[[m:CGI.escape]],
[[m:URI.encode_www_form_component]],
[[m:WEBrick::HTTPUtils.#escape_form]],
WEBrick::HTTPUtils.#escape_form,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これるりまではコメントアウトされてるようですね

#@#--- escape_form(str)
#@#todo

rdocにはエントリありました
https://docs.ruby-lang.org/en/2.7.0/WEBrick/HTTPUtils.html#method-i-escape_form

「内部で使われているだけのメソッドと定数を削除。 」と 4648051 のコミットで削除されていますが、実際には使われているようですね

% csearch -f '\.rb$' '\.escape_form'
/mnt/gems/gem-codesearch/latest-gem/Chrononaut-echoe-3.0.2/lib/echoe/client.rb:          WEBrick::HTTPUtils.escape_form(k.to_s) + "\""
/mnt/gems/gem-codesearch/latest-gem/aws-sdk-s3-1.59.0/lib/aws-sdk-s3/legacy_signer.rb:        #         WEBrick::HTTPUtils.escape_form(s),
/mnt/gems/gem-codesearch/latest-gem/cinch-lastfm-ng-0.1.3/lib/cinch/plugins/lastfm.rb:          doop = WEBrick::HTTPUtils.escape_form(artist)
/mnt/gems/gem-codesearch/latest-gem/cinch-lastfm-ng-0.1.3/lib/cinch/plugins/lastfm.rb:          pood = WEBrick::HTTPUtils.escape_form(title)
/mnt/gems/gem-codesearch/latest-gem/cinch-lastfm-ng-0.1.3/lib/cinch/plugins/lastfm.rb:          doop = WEBrick::HTTPUtils.escape_form(artist)
/mnt/gems/gem-codesearch/latest-gem/cinch-lastfm-ng-0.1.3/lib/cinch/plugins/lastfm.rb:        artist = WEBrick::HTTPUtils.escape_form(artist)
/mnt/gems/gem-codesearch/latest-gem/elliottcable-echoe-3.1.3/lib/echoe/client.rb:          WEBrick::HTTPUtils.escape_form(k.to_s) + "\""
/mnt/gems/gem-codesearch/latest-gem/eric-mechanize-0.9.3.20090623142847/lib/www/mechanize/util.rb:              [WEBrick::HTTPUtils.escape_form(k.to_s),
/mnt/gems/gem-codesearch/latest-gem/eric-mechanize-0.9.3.20090623142847/lib/www/mechanize/util.rb:                WEBrick::HTTPUtils.escape_form(v.to_s)].join("=")
/mnt/gems/gem-codesearch/latest-gem/fauna-echoe-3.2/lib/echoe/client.rb:          WEBrick::HTTPUtils.escape_form(k.to_s) + "\""
/mnt/gems/gem-codesearch/latest-gem/gemrage-1.0.0/vendor/ruby/1.8/gems/rubyforge-2.0.4/lib/rubyforge/client.rb:            WEBrick::HTTPUtils.escape_form(k.to_s) + "\""
/mnt/gems/gem-codesearch/latest-gem/gemrage-1.0.0/vendor/ruby/1.8/gems/rubyforge-2.0.4/lib/rubyforge/client.rb:        k && [  WEBrick::HTTPUtils.escape_form(k.to_s),
/mnt/gems/gem-codesearch/latest-gem/gemrage-1.0.0/vendor/ruby/1.8/gems/rubyforge-2.0.4/lib/rubyforge/client.rb:                WEBrick::HTTPUtils.escape_form(v.to_s) ].join('=')
/mnt/gems/gem-codesearch/latest-gem/gonzui-1.2/lib/gonzui/webapp/markup.rb:        query_string =  sprintf("%s:%s", tt, HTTPUtils.escape_form(text))
/mnt/gems/gem-codesearch/latest-gem/gonzui-1.2/lib/gonzui/webapp/uri.rb:              HTTPUtils.escape_form(search_query.string_without_properties))
/mnt/gems/gem-codesearch/latest-gem/gonzui-1.2/lib/gonzui/webapp/uri.rb:          param = sprintf("%s=%s", qv.short_name, HTTPUtils.escape_form(value.to_s))
/mnt/gems/gem-codesearch/latest-gem/horseman-0.0.5/vendor/ruby/1.9.1/gems/rubyforge-2.0.4/lib/rubyforge/client.rb:            WEBrick::HTTPUtils.escape_form(k.to_s) + "\""
/mnt/gems/gem-codesearch/latest-gem/horseman-0.0.5/vendor/ruby/1.9.1/gems/rubyforge-2.0.4/lib/rubyforge/client.rb:        k && [  WEBrick::HTTPUtils.escape_form(k.to_s),
/mnt/gems/gem-codesearch/latest-gem/horseman-0.0.5/vendor/ruby/1.9.1/gems/rubyforge-2.0.4/lib/rubyforge/client.rb:                WEBrick::HTTPUtils.escape_form(v.to_s) ].join('=')
/mnt/gems/gem-codesearch/latest-gem/ivanvc-logstash-input-s3-3.1.1.4/vendor/local/gems/aws-sdk-core-2.3.22/lib/aws-sdk-core/signers/s3.rb:        #         WEBrick::HTTPUtils.escape_form(s),
/mnt/gems/gem-codesearch/latest-gem/knu-mechanize-0.9.3.20090623142847/lib/www/mechanize/util.rb:              [WEBrick::HTTPUtils.escape_form(k.to_s),
/mnt/gems/gem-codesearch/latest-gem/knu-mechanize-0.9.3.20090623142847/lib/www/mechanize/util.rb:                WEBrick::HTTPUtils.escape_form(v.to_s)].join("=")
/mnt/gems/gem-codesearch/latest-gem/mack-0.8.3.1/lib/gems/rubyforge-1.0.1/lib/rubyforge/client.rb:            WEBrick::HTTPUtils.escape_form(k.to_s) + "\""
/mnt/gems/gem-codesearch/latest-gem/mack-0.8.3.1/lib/gems/rubyforge-1.0.1/lib/rubyforge/client.rb:        k && [  WEBrick::HTTPUtils.escape_form(k.to_s),
/mnt/gems/gem-codesearch/latest-gem/mack-0.8.3.1/lib/gems/rubyforge-1.0.1/lib/rubyforge/client.rb:                WEBrick::HTTPUtils.escape_form(v.to_s) ].join('=')
/mnt/gems/gem-codesearch/latest-gem/mechanize-ntlm-0.9.1/lib/www/mechanize/util.rb:              [WEBrick::HTTPUtils.escape_form(k.to_s),
/mnt/gems/gem-codesearch/latest-gem/mechanize-ntlm-0.9.1/lib/www/mechanize/util.rb:                WEBrick::HTTPUtils.escape_form(v.to_s)].join("=")
/mnt/gems/gem-codesearch/latest-gem/ric-0.13.0/vendor/bundle/ruby/2.5.0/gems/rubyforge-2.0.4/lib/rubyforge/client.rb:            WEBrick::HTTPUtils.escape_form(k.to_s) + "\""
/mnt/gems/gem-codesearch/latest-gem/ric-0.13.0/vendor/bundle/ruby/2.5.0/gems/rubyforge-2.0.4/lib/rubyforge/client.rb:        k && [  WEBrick::HTTPUtils.escape_form(k.to_s),
/mnt/gems/gem-codesearch/latest-gem/ric-0.13.0/vendor/bundle/ruby/2.5.0/gems/rubyforge-2.0.4/lib/rubyforge/client.rb:                WEBrick::HTTPUtils.escape_form(v.to_s) ].join('=')
/mnt/gems/gem-codesearch/latest-gem/rsanheim-echoe-3/lib/echoe/client.rb:          WEBrick::HTTPUtils.escape_form(k.to_s) + "\""
/mnt/gems/gem-codesearch/latest-gem/rubyforge-2.0.4/lib/rubyforge/client.rb:            WEBrick::HTTPUtils.escape_form(k.to_s) + "\""
/mnt/gems/gem-codesearch/latest-gem/rubyforge-2.0.4/lib/rubyforge/client.rb:        k && [  WEBrick::HTTPUtils.escape_form(k.to_s),
/mnt/gems/gem-codesearch/latest-gem/rubyforge-2.0.4/lib/rubyforge/client.rb:                WEBrick::HTTPUtils.escape_form(v.to_s) ].join('=')
/mnt/gems/gem-codesearch/latest-gem/search_do-0.3.0/lib/estraier_admin.rb:    params.map{|k,v| "#{k}=#{WEBrick::HTTPUtils.escape_form(v.to_s)}" }.join('&')
/mnt/gems/gem-codesearch/latest-gem/technicalpickles-echoe-3/lib/echoe/client.rb:          WEBrick::HTTPUtils.escape_form(k.to_s) + "\""

[[m:WEBrick::HTTPUtils.#escape]]
などの使用を検討してください。
詳細は [[ruby-core:29293]] からのスレッドを参照してください。
Expand Down