Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Re: tlug] Security question with grep/e...



Quoth Tim Hurman:

> 4) your security problems are simplified,
>     die unless ($user_str =~ m/^[\w.]+$/);

Why the "." in the regular expression? Is that a typo? "." matches an awful
lot, including quotes. Wouldn't a better regexp be: m/^[\w\s]+$/?

Or am I missing something here?

-- 
Josh Glover

GPG keyID 0xDE8A3103 (C3E4 FA9E 1E07 BBDB 6D8B  07AB 2BF1 67A1 DE8A 3103)
gpg --keyserver pgp.mit.edu --recv-keys DE8A3103


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links