lib/processor.rb in brakeman-0.4.1 vs lib/processor.rb in brakeman-0.5.0
- old
+ new
@@ -73,10 +73,10 @@
#Process source for initializing files
def process_initializer name, src
res = BaseProcessor.new(@tracker).process src
res = AliasProcessor.new.process res
- @tracker.initializers[name] = res
+ @tracker.initializers[Pathname.new(name).basename.to_s] = res
end
#Process source for a library file
def process_lib src, file_name
LibraryProcessor.new(@tracker).process_library src, file_name