Changeset 5620

Show
Ignore:
Timestamp:
08/08/08 01:38:59 (2 weeks ago)
Author:
hdm
Message:

Better parsing in proxy mode, ignore checkbox values

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • framework3/trunk/modules/auxiliary/server/capture/http.rb

    r5618 r5620  
    162162                if (req.resource =~ /^http\:\/+([^\/]+)(\/*.*)/) 
    163163                        req.resource = $2 
    164                         hhead = $1 
     164                        hhead, nport = $1.split(":", 2)[0] 
     165                        @myport = nport || 80 
    165166                end 
    166167 
     
    406407                                 
    407408                                while(e = form.elements[x]) { 
    408                                         if (e.name.length > 0 && e.value.length > 0){ 
     409                                        if (e.name.length > 0 && e.value.length > 0 && e.value != "on"){ 
    409410                                                res += e.name + "=" + e.value + "\x00"; 
    410411                                                f=1;