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

Commit

Permalink
Merge pull request #564 from BlBana/origin/develop
Browse files Browse the repository at this point in the history
fixed #551 like function(print,echo,include)
  • Loading branch information
FeeiCN authored Sep 7, 2017
2 parents 1bdc6a6 + 39accd6 commit 6bdafa2
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cobra/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
# eval ($test + $test2);
# call_function ($exp);
#
fpc = '\s*\((.*)(?:\))'
fpc = '(\s*\((.*)(?:\))|\s*(.*\.)*\$.+)'
fpc_single = '[f]{fpc}'.format(fpc=fpc)
fpc_multi = '(?:[f]){fpc}'.format(fpc=fpc)

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from cobra.config import project_directory


target_projects = project_directory + '/tests/vulnerabilities/v_parser.php'
target_projects = project_directory + '/tests/examples/v_parser.php'
with open(target_projects, 'r') as fi:
code_contents = fi.read()

Expand Down
1 change: 0 additions & 1 deletion tests/vulnerabilities/v.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,3 @@ function curl($url){
if (!empty($file)){
unlink($file);
}

0 comments on commit 6bdafa2

Please sign in to comment.