require SecurityError
Richard Turner <[email protected]> Wed, 26 Jan 2005 10:37:45 +0000
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I'm sure this must have been asked before, but my Googling didn't turn
up anything: in my mod_ruby script I simple want to require a class file
I've written. The method is:
def displaySections
$:.unshift(File.expand_path("../client/"))
require 'soap/rpc/driver'
require 'page'
.
.
.
end
Ruby throws a wobbly trying to require 'page' though: the error (from
Apache's log) is:
[Wed Jan 26 09:58:57 2005] [error]
mod_ruby: /home/rjt/sara/trunk/src/public_html/sections.rbx:32:in
`require': Insecure operation - require (SecurityError)
What do I have to do to require this file? Temporarily making the dir
read-only to everyone makes no difference.
Cheers,
Richard.
--
"Racing turtles, the grapefruit is winning..."