Commit 0c4418bb authored by John Resig's avatar John Resig

Limit domManip caching to strings < 512 characters long. Ticket #4883.

parent 2a268f5f
...@@ -140,7 +140,7 @@ jQuery.fn.extend({ ...@@ -140,7 +140,7 @@ jQuery.fn.extend({
var fragment, scripts, cacheable, cached, cacheresults, first; var fragment, scripts, cacheable, cached, cacheresults, first;
if ( this[0] ) { if ( this[0] ) {
if ( args.length === 1 && typeof args[0] === "string" ) { if ( args.length === 1 && typeof args[0] === "string" && args[0].length < 512 ) {
cacheable = true; cacheable = true;
cacheresults = jQuery.fragments[ args[0] ]; cacheresults = jQuery.fragments[ args[0] ];
if ( cacheresults ) { if ( cacheresults ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment