presidentbeef/brakeman — pull request #114 by presidentbeef (2012-07-17 18:52:45+00:00)
Title: Fix "empty char-class" error

This error sometimes comes up when processsing a render in a template, because the "name" of the template to render is interpolated into a regex [here](https://github.com/presidentbeef/brakeman/blob/master/lib/brakeman/processors/template_alias_processor.rb#L20). If the "name" is actually a method call or other code, it can produce a regex error.

This patch just skips rendering if the template name isn't a string or symbol.