Commit e864e859 authored by Ad Schellevis's avatar Ad Schellevis

(dev) add .class to crawler

parent 714eeeb7
...@@ -85,7 +85,7 @@ class DependancyCrawler(object): ...@@ -85,7 +85,7 @@ class DependancyCrawler(object):
for wroot, wdirs, wfiles in os.walk(analyse_dir): for wroot, wdirs, wfiles in os.walk(analyse_dir):
for src_filename in wfiles: for src_filename in wfiles:
src_filename = '%s/%s' % (wroot, src_filename) src_filename = '%s/%s' % (wroot, src_filename)
if src_filename.split('.')[-1] in ('php', 'inc') \ if src_filename.split('.')[-1] in ('php', 'inc','class') \
or open(src_filename).read(1024).find('/bin/php') > -1: or open(src_filename).read(1024).find('/bin/php') > -1:
self.fetch_php(src_filename) self.fetch_php(src_filename)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment