Changeset 659

Show
Ignore:
Timestamp:
07/18/07 16:25:21 (1 year ago)
Author:
kindlund
Message:

Added sanity checking to flash instruction parsing.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • honeyclient/branches/exp/jpuchalski-active_content/lib/HoneyClient/Agent/Driver/ActiveContent/Flash.pm

    r655 r659  
    308308          $instr =~ s/^\s+//; 
    309309          ($var, $val) = split(/, /, $instr); 
    310           $val =~ s/\s+$//; 
    311           $LOG->info("Value of the URL is $val"); 
    312           $val =~ s/'//g; 
    313           _addURL $val; 
     310          # Sanity check. 
     311          if (defined($vval)) { 
     312              $val =~ s/\s+$//; 
     313              $LOG->info("Value of the URL is $val"); 
     314              $val =~ s/'//g; 
     315              _addURL $val; 
     316          } 
    314317          last; 
    315318        }