You exactly got the issue I have. Your approach will work fine but for one issue bcoz of my requirement.
I have a softlink to the user directories under /usr/local/apache/htdocs as follows:-
wd -> /usr/local/wd/
Then, I build the link using the 'soft link', 'username' & 'log file name' and present it in HTML format.
One of the requirement is that I show the log files as 'links' in the HTML page so that the user can click and view the file(s), if they want to. Hence, I coded like what I had explained in the original post.
Is there any way to still have the files as 'links' and also take care of the security issue?
In reply to Re^2: Perl CGI - Viewing logfiles - Security Issues
by Anonymous Monk
in thread Perl CGI - Viewing logfiles - Security Issues
by stumbler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |