Comments (12)
Hi Rebecca,
Thank you for reporting this problem. I have seen it before, but thought it was an isolated problem.
I will be looking into it.
from brakeman.
Okay, it appears the problem is that Brakeman is not handling render :layout => ...
inside of views properly. Is this a pattern you are using?
from brakeman.
It's not, actually - though this app is using responders and I'm not sure if responders use that pattern under the hood...
from brakeman.
Oh :( Alright, I'll keep looking into it.
from brakeman.
Can you verify this is still occurring with Brakeman 1.6.0? Thanks!
from brakeman.
Still an issue, yes.
wrong number of arguments (0 for 1) | /Users/becky/.rvm/gems/ruby-1.9.3-p0/gems/brakeman-1.6.0/lib/brakeman/processors/template_alias_processor.rb:29:in `template_name'
from brakeman.
Okay, thanks!
from brakeman.
same issue
ruby -v
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin10.8.0]
rails -v
Rails 3.2.3
brakeman -v
brakeman 1.6.0
from brakeman.
This seems to be caused by one or more calls to render
in views without options that Brakeman recognizes.
My current guess is this is caused by calls to render :template => ...
which were not being recognized. This is fixed in 1.6.1.
Please upgrade and let me know if the errors still occur.
Thanks!
from brakeman.
Fixed in my case. Thanks.
from brakeman.
Fixed here too in 1.6.1 :) Thanks!
from brakeman.
Awesome!
Thanks for reporting this issue.
from brakeman.
Related Issues (20)
- False positive - loofah gem 2.19.1 is already beyond suggested upgrade of 2.2.1 HOT 2
- Config in environment files generated by external services are not detected HOT 1
- Documentation Missing for Path Traversal HOT 2
- `abbrev` warning for ruby 3.4.0 HOT 4
- Possibility to ignore/skip directories/paths HOT 4
- UnsafeReflection requires array to be defined with values strictly in the context of the execution HOT 4
- Brakeman does not follow directory symlinks HOT 7
- Brakeman hangs on some platforms HOT 5
- Brakeman unable to detect Renderables in a Gem? HOT 2
- Command Injection doesn't detect shellescape unless the code is in the same function HOT 2
- Undeliverable address [email protected] in LICENSE.md HOT 2
- Controller with "log" in pathname excluded from scan HOT 1
- Check Graphql end-point for vulnerabilities HOT 1
- with_content for ViewComponent flagged as dynamic render path HOT 4
- Parsing Error on splat operator
- Issue with adding autoload_paths for views dir HOT 1
- False negatives due to --skip-libs ignoring app/ files. HOT 2
- Support non-standard gemfile naming for dual booting Rails apps HOT 1
- brakeman still references haml 4 - which is a bit long in the tooth (Haml::Filter::Coffee class vs. module)
- Incorrect identification of User input; Unable to dynamically render fully qualified path HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brakeman.