Skip to content

Instantly share code, notes, and snippets.

@benbai123
Created July 16, 2012 01:40
Show Gist options
  • Save benbai123/3119746 to your computer and use it in GitHub Desktop.
Save benbai123/3119746 to your computer and use it in GitHub Desktop.
zjq._useQS = function (reqInf) {
var s = reqInf.content, j = s.length, prev, cc;
if (j + reqInf.uri.length < 2000) {
while (j--) {
cc = s.charAt(j);
if (cc == '%' && prev >= '8')
return false;
prev = cc;
}
return true;
}
return false;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment