Skip to content

Commit 6261529

Browse files
committed
Fix a php warning
This should close rapid7#8670
1 parent 9775df1 commit 6261529

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/payload/php.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def php_system_block(options = {})
103103
}else"
104104
proc_open = "
105105
if(#{is_callable}('proc_open')and!#{in_array}('proc_open',#{dis})){
106-
$handle=proc_open(#{cmd},array(array(pipe,'r'),array(pipe,'w'),array(pipe,'w')),$pipes);
106+
$handle=proc_open(#{cmd},array(array('pipe','r'),array('pipe','w'),array('pipe','w')),$pipes);
107107
#{output}=NULL;
108108
while(!feof($pipes[1])){
109109
#{output}.=fread($pipes[1],1024);

0 commit comments

Comments
 (0)