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

Commit 6bdafa2

Browse files
authored
Merge pull request #564 from BlBana/origin/develop
fixed #551 like function(print,echo,include)
2 parents 1bdc6a6 + 39accd6 commit 6bdafa2

File tree

4 files changed

+2
-3
lines changed

4 files changed

+2
-3
lines changed

cobra/const.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
# eval ($test + $test2);
3232
# call_function ($exp);
3333
#
34-
fpc = '\s*\((.*)(?:\))'
34+
fpc = '(\s*\((.*)(?:\))|\s*(.*\.)*\$.+)'
3535
fpc_single = '[f]{fpc}'.format(fpc=fpc)
3636
fpc_multi = '(?:[f]){fpc}'.format(fpc=fpc)
3737

File renamed without changes.

tests/test_parser.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from cobra.config import project_directory
1717

1818

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

tests/vulnerabilities/v.php

-1
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,3 @@ function curl($url){
9999
if (!empty($file)){
100100
unlink($file);
101101
}
102-

0 commit comments

Comments
 (0)