[wellylug] cgi script question

Mark Signal mark at databackup.co.nz
Thu Sep 9 14:48:26 NZST 2004


Hi all

once again I'm stuck

I'm trying to run a cgi script that will decrypt files in the directory a
web browser is currently looking at.

If I hard code the directory into the cgi script it works fine so it appears
my bodged attempt to stitch the document root to the HTTP_REFERER and hack
out the bits I don't need is no good.

here is my attempt:

find `echo $DATADIR$HTTP_REFERER | cut -c 1-24,46-` -type f -iname
*.extension -exec decryption bits {} ';'

if I replace `echo $DATADIR$HTTP_REFERER | cut -c 1-24,46-` with $DATADIR it
decrypts everything below the document root so the basic functionality is
there (I think)

as usual any suggestions (polite or otherwise :) gratefully accepted.

cheers


Mark Signal
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.752 / Virus Database: 503 - Release Date: 3/09/2004




More information about the wellylug mailing list