in reply to Re: Perl script to retrieve a webpage using perl
in thread Perl script to retrieve a webpage using perl
This way it is ok. But note that if the contents of $url comes from an untrusted source (e.g. a field in a form or part of a URL), then simply calling wget with the parameter listed, is very dangerous.
Consider what would happen if $url would be '"; find /"'. Then consider what would happen if someone would call a program other than "find".
Liz
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Perl script to retrieve a webpage using perl
by sgifford (Prior) on Jul 20, 2003 at 15:58 UTC |