tomekr / boilerman Goto Github PK
View Code? Open in Web Editor NEWA tool used to help with testing/auditing the security of a Rails application.
License: MIT License
A tool used to help with testing/auditing the security of a Rails application.
License: MIT License
This requires the user to click the "Filters" panel twice for it to minimize.
I'm trying to run boilerman on a complex application that uses papertrail, activeadmin, and a bunch of other gems.
http://localhost:3000/boilermanis failing to render the with the error:
NoMethodError - undefined method `empty?' for nil:NilClass:
The issue is with line 29 of https://github.com/tomekr/boilerman/blob/master/app/views/boilerman/actions/index.html.erb#L29 :
<% filter_count = actions.map{|_, filters| filters.empty? ? 1 : filters}.flatten.count %>
Specifically, these are the values of the Local Variables in the loop:
_ :_non_existant_route
filters nil
controller :_weird_controller
actions [:_non_existant_route]
filter_count nil
local_assigns {}
output_buffer nil
_old_virtual_path nil
_old_output_buffer nil
The .empty?
in the ERB could be .blank?
, but the page then fails when it reaches filters.count
at https://github.com/tomekr/boilerman/blob/master/app/views/boilerman/actions/index.html.erb#L35
I haven't reviewed your code closely enough, but it looks like this filter could be ignored here: https://github.com/tomekr/boilerman/blob/master/app/controllers/boilerman/actions_controller.rb#L11
Or, we could explicitly add a next if filters.nil?
to one of the loops. Could you please suggest a fix?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.