You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A malicious server can no longer make Mechanize::FileSaver, or Mechanize::DirectorySaver with decode_filename: true, write files outside the save directory. Only applications that register one of these as a pluggable parser are affected. GHSA-hxgc-9476-fc65
Improved
The gem no longer packages the test suite, the test certificates, or the example scripts, which makes it about a third smaller. It still packages test/htdocs/, which Mechanize::TestCase needs. (#667) @yuri-zubov
Mechanize::TestCase fake responses work with net-http 0.10.0 and later, which reads response lines with Net::BufferedIO#readuntil. Previously a chunked response body raised NoMethodError. The fake socket is now a Net::BufferedIO, like a real one, so read_body yields fragments of at most 16 KiB, and a body shorter than its Content-Length raises EOFError when ignore_eof is false.