How do I escape certain characters (?\.')

2001-09-25 Thread Mark Ross
Hi all, I have a simple form that allows users to input their name and a message and then email that to me. The message is in a textarea field. I'm concerned that I am not properly escaping certain characters that I would like to let through (?\.'). Here's my snippet: # First, escape any

Dangerous characters in untainting?

2001-08-10 Thread Mark Ross
Hi all, First, I know what when I untaint a value passed to my script using CGI, I need to check for what I want, not what I don't want. But, since I'm even more of a newbie to the world of unix than I am to Perl, are "#" bad ... ie, can they do dangerous things? I'd like users of my script to

A better way for ugly code?

2001-08-09 Thread Mark Ross
Hi all, I'm curious how I can condense this code. I'm pulling my values from a Web submitted form (using CGI), and I need to untaint them. But, each form field has different requirement for what characters it can match (account number should only be numbers, etc). I was wondering if there's a b

RE: Redirecting STDOUT

2001-08-07 Thread Mark Ross
>Have you taken a look at the GnuPG or Crypt::GPG modules on CPAN? Yep, I've looked (and longed), but my Web hosting service refers to them as "hooky." I think he's hostile because they aren't version 1 or higher (not that it really makes much difference). I also don't have the ability to directl

Redirecting STDOUT

2001-08-07 Thread Mark Ross
Hi all, I have a Perl script that takes the contents of a form, feeds them to GnuPG for encryption and then emails me the encrypted document. GPG wants to either display the results in STDOUT or write a text file, both of which aren’t good. I was hoping redirect STDOUT to a variable for a short

How to make a script run in the background on a Win32 machine

2001-07-10 Thread Mark Ross
Hi all, I was hoping someone could point me in the right direction. I have a script that will run for long periods of time (checking a url every once in a while to make sure it is up) on a Windows98 machine. The script works fine, but it runs in a dos window. Is there a way in which I could invok

E-mailing attachments?

2001-05-29 Thread Mark Ross
t playing nice about installing things. Oh, I'm on a UNIX box and can fire off stuff to sendmail at will. Any thoughts? --Mark Ross. __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/