mirror of
https://github.com/xevidos/codiad.git
synced 2024-12-22 13:52:16 +01:00
Added search support for filenames with spaces
This commit is contained in:
parent
c85c920340
commit
6949de42ff
1 changed files with 1 additions and 1 deletions
|
@ -649,7 +649,7 @@ class Filemanager extends Common {
|
|||
|
||||
$return = array();
|
||||
$input = str_replace( '"', '', $query );
|
||||
$cmd = 'find -L ' . escapeshellarg( $path ) . ' -iregex '.escapeshellarg( '.*' . $options["filetype"] ) . ' -type f | xargs grep -i -I -n -R -H ' . escapeshellarg( $input ) . '';
|
||||
$cmd = 'find -L ' . escapeshellarg( $path ) . ' -iregex '.escapeshellarg( '.*' . $options["filetype"] ) . ' -type f -print0 | xargs -0 grep -i -I -n -R -H ' . escapeshellarg( $input ) . '';
|
||||
$output = shell_exec( $cmd );
|
||||
$output_arr = explode( "\n", $output );
|
||||
foreach ( $output_arr as $line ) {
|
||||
|
|
Loading…
Reference in a new issue