Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
BlBana authored Mar 29, 2018
2 parents 3d206f0 + 462cfae commit 812d9a7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .coveralls.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
repo_token: RTm43Y7KTsi2AkDnpxTr3UvNcJZBKSXid
repo_token: JJS0p6rdrOP93s5lMebbwyAx2Z2L0PabA
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@ Cobra是一款**源代码安全审计**工具,支持检测多种开发语言
[![report01](https://raw.githubusercontent.com/whaleshark-team/cobra/master/docs/report_01.jpg)](https://whaleshark-team.github.io/cobra/api)
[![report02](https://raw.githubusercontent.com/whaleshark-team/cobra/master/docs/report_02.jpg)](https://whaleshark-team.github.io/cobra/api)

## Contributors(贡献者)
项目由[Feei](https://github.com/FeeiCN)发起并主导,核心开发者[LiGhT1EsS](https://github.com/LiGhT1EsS)[BlBana](https://github.com/BlBana)[40huo](https://github.com/40huo)[braveghz](https://github.com/braveghz),也感谢其他[贡献者](https://github.com/WhaleShark-Team/cobra/graphs/contributors),欢迎提交PR。

## Links(链接)
- [Cobra文档](https://whaleshark-team.github.io/cobra/)
4 changes: 2 additions & 2 deletions cobra/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ class Config(object):
def __init__(self, level1=None, level2=None):
self.level1 = level1
self.level2 = level2
if level1 is None and level2 is None:
if self.level1 is None and self.level2 is None:
return
config = ConfigParser()

config.read(config_path)
value = None
try:
value = config.get(level1, level2)
value = config.get(self.level1, self.level2)
except Exception as e:
traceback.print_exc()
logger.critical("./configs file configure failed. {u}\nError: {e}".format(u='http://cobra.feei.cn/config', e=e.message))
Expand Down
1 change: 0 additions & 1 deletion cobra/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,6 @@ def scan(self):
:return: is_vulnerability, code
"""
self.method = 0
self.code_content = self.code_content
if len(self.code_content) > 512:
self.code_content = self.code_content[:500]
self.status = self.status_init
Expand Down

0 comments on commit 812d9a7

Please sign in to comment.