[index] [text page] [<<start] [<prev] [next>] [last>>]
Page 36: User Input Verification

Page 36

  
  User Input Verification
  Wrong:
    if ( $something !~ /$BADCHARS/ ) {
  Right
    if ( $something =~ /^ $GOODCHARS $/x ) {
    if ( $something =~ /^ $GOODPATTERN $/x ) {

Copyright 2003, Bri Hatch of Onsight, Inc.

Presented at SPUG, 2003.

Presentation created using vim and MagicPoint.