Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
binwalk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-gitdep
binwalk
Commits
551d28a3
Commit
551d28a3
authored
Nov 18, 2014
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed exclude filter bug
parent
6c918422
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
magic.py
src/binwalk/core/magic.py
+2
-2
No files found.
src/binwalk/core/magic.py
View file @
551d28a3
...
@@ -432,7 +432,7 @@ class Magic(object):
...
@@ -432,7 +432,7 @@ class Magic(object):
return
True
return
True
for
exclude
in
self
.
excludes
:
for
exclude
in
self
.
excludes
:
if
exclude
.
mat
ch
(
text
):
if
exclude
.
sear
ch
(
text
):
filtered
=
True
filtered
=
True
break
break
...
@@ -759,7 +759,7 @@ class Magic(object):
...
@@ -759,7 +759,7 @@ class Magic(object):
tags
=
self
.
_analyze
(
signature
,
offset
)
tags
=
self
.
_analyze
(
signature
,
offset
)
# Generate a SignatureResult object and append it to the results list if the
# Generate a SignatureResult object and append it to the results list if the
# signature is valid, or if invalid results were requested.
# signature is valid, or if invalid results were requested.
if
not
tags
[
'invalid'
]
or
self
.
show_invalid
:
if
(
not
tags
[
'invalid'
]
or
self
.
show_invalid
)
and
not
self
.
_filtered
(
tags
[
'description'
])
:
# Only display results with the 'once' tag once.
# Only display results with the 'once' tag once.
if
tags
[
'once'
]:
if
tags
[
'once'
]:
if
signature
.
title
in
self
.
display_once
:
if
signature
.
title
in
self
.
display_once
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment