anexplore / httpfox

Automatically exported from code.google.com/p/httpfox
GNU General Public License v2.0
0 stars 0 forks source link

Bad regexps in getPostData #123

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
HttpFoxService.js contains several regexps with "\b" and "\s" - these do not 
result in the intended behavior because they are ASCII Backspace and "s", 
respectively.  Double backslashing or the /regexp/ form should be used.

re = new RegExp('\bname="([^"]+)"', "i");
re = new RegExp('\bname=([^\s:;]+)', "i");
re = new RegExp('\b(filename="[^"]*")', "i");
re = new RegExp('\b(filename=[^\s:;]+)', "i");
re = new RegExp('\b(Content-type:\s*"[^"]+)"', "i");
re = new RegExp('\b(Content-Type:\s*[^\s:;]+)', "i");

Original issue reported on code.google.com by ivan@ludios.org on 12 Oct 2012 at 12:55