Bug Tracker

Ticket #2806: dynamic-patch.diff

File dynamic-patch.diff, 0.5 kB (added by joern, 8 months ago)

patch

  • src/ajax.js

     
    489489                        s.push( encodeURIComponent(j) + "=" + encodeURIComponent( this ) ); 
    490490                    }); 
    491491                else 
    492                     s.push( encodeURIComponent(j) + "=" + encodeURIComponent( a[j] ) ); 
     492                    s.push( encodeURIComponent(j) + "=" + encodeURIComponent( jQuery.isFunction(a[j]) ? a[j]() : a[j] ) ); 
    493493 
    494494        // Return the resulting serialization 
    495495        return s.join("&").replace(/%20/g, "+");