Mr. Shawn H. Corey wrote:
$UploadedImage = 'badname\'s.jpg' ;
if ( $UploadedImage =~ m/'/ ) {
...
How do I match the ' ?
You match it exactly like you're doing. Since CGI is involved, I'd look
elsewhere from the problem. Are you absolutely certain that some
software between the browser and your program is not translating
badname's.jpg into badname's.jpg ?
-----------------------
VERY interesting. This script is in the middle of some cgi with fields
entered and sent in via html forms. I threw in a print and it looks like
the value of UploadedImage is FlyingField::s.jpg at the time this
evaluation is running ???!!!
There must be some really odd stuff going on with html encoding or regx!
Anyway, if I change my match to :: I can now catch the situation... not
that I understand how a ' gets changed to ::
thanks for idea... once again proving that a simple print statement to
check what you actually have is a great idea. ;)
D
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/