[Fixme] Check only first argument (before space if space) for syscall()
This commit is contained in:
parent
bbd4c717c5
commit
006955229c
|
@ -3,8 +3,12 @@
|
||||||
/* [1] Launches external script
|
/* [1] Launches external script
|
||||||
=========================================================*/
|
=========================================================*/
|
||||||
function syscall($dependency=null){
|
function syscall($dependency=null){
|
||||||
|
|
||||||
|
// cut in words
|
||||||
|
$words = explode(' ', $dependency);
|
||||||
|
|
||||||
/* (1) Check file */
|
/* (1) Check file */
|
||||||
if( is_null($dependency) || !file_exists($dependency) )
|
if( is_null($dependency) || !file_exists($words[0]) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
/* (2) Call and catch output */
|
/* (2) Call and catch output */
|
||||||
|
|
Loading…
Reference in New Issue