escapeshellarg 함수에서 일부서버의 경우 빈값일때 '' 결과가 넘어오지 않는 버그가 있습니다.

This commit is contained in:
kagla
2015-08-20 18:33:36 +09:00
committed by chicpro
parent e1ef69a0c4
commit 58902f97c4

View File

@ -93,7 +93,9 @@ class C_CT_CLI
while ( list(,$i) = each($arg) )
{
$exec_cmd .= " " . escapeshellarg( $i );
// 일부서버의 경우 빈값일때 '' 결과가 넘어오지 않는 버그가 있다. kagla 150820
//$exec_cmd .= " " . escapeshellarg( $i );
$exec_cmd .= " " . ( escapeshellarg($i) ? escapeshellarg($i) : "''" );
}
$rt = exec( $exec_cmd );