In a mod_ruby script I am trying to lookup an ip address with
TCPSocket.gethostbyname
But it fails - even though the same script in batch mode succeeds.
I notice that $SAFE==1 - is this what is preventing the method to
execute?
Cheers
Jesper
In a mod_ruby script I am trying to lookup an ip address with
TCPSocket.gethostbyname
But it fails - even though the same script in batch mode succeeds.
I notice that $SAFE==1 - is this what is preventing the method to
execute?
Cheers
Jesper
Hi,
In message “TCPSocket & $SAFE=1” on 03/08/01, Jesper Olsen jolsen@mail2world.com writes:
In a mod_ruby script I am trying to lookup an ip address with
TCPSocket.gethostbynameBut it fails - even though the same script in batch mode succeeds.
How it fails?
matz.
But it fails - even though the same script in batch mode succeeds.
You must untaint the String given to TCPSocket::gethostbyname : be
carefull when you do this
Guy Decoux
ts decoux@moulon.inra.fr wrote in message news:200308010820.h718Kfv07084@moulon.inra.fr…
But it fails - even though the same script in batch mode succeeds.
You must untaint the String given to TCPSocket::gethostbyname : be
carefull when you do thisGuy Decoux
Yes, that did the trick. Thanks for the hint.
Jesper