Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Tar2RubyScript: Path to original executable & browser issues
Bart Meyers
3/27/2007 10:20:00 AM
Getting the path to the original executable is possible with the script
described here:
http://www.erikveen.dds.nl/tar2rubyscript/index....
I work with a rails application that consist of a executable and some
loose files (images, movies) on a dvd. With the above-mentioned script I
can reach the absolute path (ie a path to the dvd) to these files by
using "oldlocation". Great!
However, my application runs through localhost and most browsers treat
this address like any other internet address, with all security options
on. This means, among other things, that the browser will not
execute/render/show files whos path is an _absolute_ path to a file on
my system. Otherwise, any internet site could execute any file on my
system.
In many browsers, we can just add local host to a list of safe sites,
but I don't want every user of my application to have to change their
browser's settings.
So, is there any way to solve this problem? Maybe the path can be made
"relative", if it can have the prefix "http://localhost:3000/", so the
browser thinks this is just another path "to a file on that particular
server"?
Any ideas on this browser problem?
Bart
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Tar2RubyScript: Path to original executable & browser issues
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password