Doc promotes inadequate way to sanitize a filename
The "server" example for the "Logger" contains these lines:
# make the filename safe, then declare it to be so
fname = name.gsub(/[.\/]/, "_").untaint
On Windows, backslash is a separator character. The above gsub does not remove backslash.
Updated by zzak (Zachary Scott) almost 7 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r43632.
Chris, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- lib/drb/drb.rb: [DOC] promote better windows-safe filename regular expression in DRb Logger example. Reported by Chris Pheonix [Bug #9074]