I’m trying to get some ruby code, running under mod_ruby, to retrieve the
mtime of a file. But calls to stat raise “Insecure operation - stat
$SAFE is at 1; trying to lower it raises an error.
The site runs ruby 1.6.7 (2002-07-11) [i386-freebsd4]
How can I retrieve the last mod time of a file without raising security
untainintg the string variable holding the name of file doesn’t help either.