Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad regexps in getPostData #123

Open
GoogleCodeExporter opened this issue Feb 8, 2016 · 0 comments
Open

Bad regexps in getPostData #123

GoogleCodeExporter opened this issue Feb 8, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 12 Oct 2012 at 12:55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant