Changeset 149


Ignore:
Timestamp:
08/12/2009 12:49:34 PM (4 years ago)
Author:
deity
Message:

Quick fix for cache where methods aren't the same

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/nikto_core.plugin

    r148 r149  
    18231823 unless ($_[4]) { LW2::http_fixup_request(\%request); } 
    18241824 # Cache 
    1825  if (defined $CACHE{$request{whisker}->{uri}} && !defined $CLI{nocache}) 
     1825 if (defined $CACHE{$request{whisker}->{uri}} && !defined $CLI{nocache} && 
     1826     $CACHE{$request{whisker}->{uri}}{method} eq $request{whisker}->{method}) 
    18261827 { 
    18271828    # Get from cache 
     
    18361837    unless (defined $CLI{nocache}) 
    18371838    { 
     1839       $CACHE{$request{whisker}->{uri}}{method}=$result{whisker}->{method}; 
    18381840       $CACHE{$request{whisker}->{uri}}{res}=$result{whisker}->{code}; 
    18391841       $CACHE{$request{whisker}->{uri}}{content}=$result{whisker}->{data}; 
Note: See TracChangeset for help on using the changeset viewer.