Changeset 217

Show
Ignore:
Timestamp:
03/07/07 16:11:01 (2 years ago)
Author:
kindlund
Message:

Hash references are annoying.

Files:

Legend:

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

    r215 r217  
    108108  # Sanity check: make sure the URL points to a resource we understand  
    109109  if ($args{'file'} =~ /\.swf$/) { 
    110     my $urls = HoneyClient::Agent::Driver::ActiveContent::Flash::extract(%args); 
    111     return $urls; 
     110    my %urls = HoneyClient::Agent::Driver::ActiveContent::Flash::extract(%args); 
     111    return %urls; 
    112112  } else { 
    113113    Carp::croak "Error: URL does not contain a known resource!\n"; 
  • honeyclient/branches/exp/jpuchalski-active_content/lib/HoneyClient/Agent/Driver/ActiveContent/Flash.pm

    r214 r217  
    151151   
    152152  # TODO: Eventually, return something useful. 
    153   return { 'http://www.google.com' => 1, }; 
     153  my %urls = ( 
     154                'http://www.google.com' => 1, 
     155             ); 
     156  return %urls; 
    154157} 
    155158 
  • honeyclient/branches/exp/jpuchalski-active_content/lib/HoneyClient/Agent/Driver/Browser.pm

    r216 r217  
    10061006            # TODO: Save content to a temp file on disk. 
    10071007 
    1008             \%scored_links = HoneyClient::Agent::Driver::ActiveContent::process( 
     1008            %scored_links = HoneyClient::Agent::Driver::ActiveContent::process( 
    10091009                                file     => "t/test_flash/welcome.swf", 
    10101010                                base_url => $base, 
    1011                             ); 
     1011                            ); 
    10121012 
    10131013        # Assume that all other content types are HTML-based.