[Fixme] Check only first argument (before space if space) for syscall()

This commit is contained in:
xdrm-brackets 2017-02-20 22:26:26 +01:00
parent bbd4c717c5
commit 006955229c
1 changed files with 5 additions and 1 deletions

View File

@ -3,8 +3,12 @@
/* [1] Launches external script
=========================================================*/
function syscall($dependency=null){
// cut in words
$words = explode(' ', $dependency);
/* (1) Check file */
if( is_null($dependency) || !file_exists($dependency) )
if( is_null($dependency) || !file_exists($words[0]) )
return false;
/* (2) Call and catch output */