“Frantisek Fuka” email@example.com writes:
When using: “require ‘engine.rbx’” under mod_ruby, I get “File does not
exist” error. However, if I change “require” to “load”, it gets loaded
allright. the file and it directory has correct permissions (755).
“Untaint”-ing the file does solve the problem.
I am particularly confused about this error - how can the ruby say the
file does not exist when it evidentnly does?
See ri ‘Kernel#require’.
If the file has the extension
.rb'', it is loaded as a source file; if the extension is.so’’,
.o'', or.dll’’, or whatever the
default shared library extension is on the current platform, Ruby
loads the shared library as a Ruby extension.
Otherwise, Ruby tries adding
.rb'',.so’’, and so on to the name.