Home  |  Linux  | Mysql  | PHP  | XML
From:Robert Roggenbuck Date:Wed Mar 10 10:03:01 2010
Subject:Re: Getting forward slashes and hyphins past the taint check
Move the hyphen to the end (only):

if ( $Cookie_path =~ /^([\@\w\/.-]+)$/ ) {

Greetings

Robert


Adam Jimerson schrieb:
> In one of my scripts that I am developing I have a field where the needs
> to supply which my include forward slashes and hyphens. I understand the
> inherent security risk of allowing such things and so does the taint
> check... I'm sure the answer to this is really simple and I'm just over
> looking it (or even over complicating things) but here is what I have
> tired to get it to work:
>
> if ( $Cookie_path =~ /^([-\@\w\/\-.]+)$/ ) {
> $Cookie_path = $1;
> } else {
> die "Incorrect format";
> }
Navigate in group perl.beginners.cgi at sever nntp.perl.org
Previous Next


Your recent visits
Perl CGI advise/feedback please ...
Re: CGI ap on NetworkSolutions host
how to add support of Msql and CGI in Apache
Logout from Apache
CGI-BIN Help/Advise - editing a file - HOW ?



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants