Kai:

> Can someone shed some light?  

Your email was a little difficult to decode as it was afflicted with numbered 
codes. I hope I've read it right.

If your folder structure is:

root
|--cgi-bin
|--httpdocs

Then this should work:

  filename: rejoin [ %../httpdocs/ destpage ".html" ]
  either exists? filename [
       print "have it" ][
       print ["couldn't find " file-name clean-path file-name]
       ]

If it doesn't, the clean-path part should help you see exactly where it is 
looking.

A possible problem is that you are looking outside the sandbox.....Have you 
got -cs in the shebang line? eg:

#! ........./rebol/rebol.exe -cs


Possibly irrelevant, but if destpage is a value supplied by a user, then do 
make sure it is safe.  A hacker could attempt to get you to display a file you 
weren't expecting by typing something like

   http://wwwyoursite.com?your-cgi.r?page=../../../../../etc/bin/passwords

Sunanda.
-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to