mirror of
https://github.com/misterunknown/ifm.git
synced 2025-08-12 19:13:57 +02:00
fixed broken entries in the copy/move dialog due to missing encoding
This commit is contained in:
@@ -2272,7 +2272,16 @@ function IFM( params ) {
|
|||||||
if( $handle = opendir( $start_dir ) ) {
|
if( $handle = opendir( $start_dir ) ) {
|
||||||
while (false !== ( $result = readdir( $handle ) ) ) {
|
while (false !== ( $result = readdir( $handle ) ) ) {
|
||||||
if( is_dir( $this->pathCombine( $start_dir, $result ) ) && $result != "." && $result != ".." ) {
|
if( is_dir( $this->pathCombine( $start_dir, $result ) ) && $result != "." && $result != ".." ) {
|
||||||
array_push( $ret, array( "text" => $result, "dataAttributes" => array( "path" => $this->pathCombine( $start_dir, $result ) ), "nodes" => $this->getFolderTreeRecursive( $this->pathCombine( $start_dir, $result ) ) ) );
|
array_push(
|
||||||
|
$ret,
|
||||||
|
array(
|
||||||
|
"text" => htmlspecialchars( $result ),
|
||||||
|
"dataAttributes" => array(
|
||||||
|
"path" => $this->pathCombine( $start_dir, $result )
|
||||||
|
),
|
||||||
|
"nodes" => $this->getFolderTreeRecursive( $this->pathCombine( $start_dir, $result ) )
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
11
ifm.php
11
ifm.php
@@ -2272,7 +2272,16 @@ function IFM( params ) {
|
|||||||
if( $handle = opendir( $start_dir ) ) {
|
if( $handle = opendir( $start_dir ) ) {
|
||||||
while (false !== ( $result = readdir( $handle ) ) ) {
|
while (false !== ( $result = readdir( $handle ) ) ) {
|
||||||
if( is_dir( $this->pathCombine( $start_dir, $result ) ) && $result != "." && $result != ".." ) {
|
if( is_dir( $this->pathCombine( $start_dir, $result ) ) && $result != "." && $result != ".." ) {
|
||||||
array_push( $ret, array( "text" => $result, "dataAttributes" => array( "path" => $this->pathCombine( $start_dir, $result ) ), "nodes" => $this->getFolderTreeRecursive( $this->pathCombine( $start_dir, $result ) ) ) );
|
array_push(
|
||||||
|
$ret,
|
||||||
|
array(
|
||||||
|
"text" => htmlspecialchars( $result ),
|
||||||
|
"dataAttributes" => array(
|
||||||
|
"path" => $this->pathCombine( $start_dir, $result )
|
||||||
|
),
|
||||||
|
"nodes" => $this->getFolderTreeRecursive( $this->pathCombine( $start_dir, $result ) )
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
11
src/main.php
11
src/main.php
@@ -324,7 +324,16 @@ f00bar;
|
|||||||
if( $handle = opendir( $start_dir ) ) {
|
if( $handle = opendir( $start_dir ) ) {
|
||||||
while (false !== ( $result = readdir( $handle ) ) ) {
|
while (false !== ( $result = readdir( $handle ) ) ) {
|
||||||
if( is_dir( $this->pathCombine( $start_dir, $result ) ) && $result != "." && $result != ".." ) {
|
if( is_dir( $this->pathCombine( $start_dir, $result ) ) && $result != "." && $result != ".." ) {
|
||||||
array_push( $ret, array( "text" => $result, "dataAttributes" => array( "path" => $this->pathCombine( $start_dir, $result ) ), "nodes" => $this->getFolderTreeRecursive( $this->pathCombine( $start_dir, $result ) ) ) );
|
array_push(
|
||||||
|
$ret,
|
||||||
|
array(
|
||||||
|
"text" => htmlspecialchars( $result ),
|
||||||
|
"dataAttributes" => array(
|
||||||
|
"path" => $this->pathCombine( $start_dir, $result )
|
||||||
|
),
|
||||||
|
"nodes" => $this->getFolderTreeRecursive( $this->pathCombine( $start_dir, $result ) )
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user