mirror of
https://github.com/misterunknown/ifm.git
synced 2025-08-12 19:13:57 +02:00
fixed error when encoding the json response
This commit is contained in:
@@ -2957,7 +2957,8 @@ function IFM( params ) {
|
|||||||
array( $this, 'convertToUTF8' )
|
array( $this, 'convertToUTF8' )
|
||||||
);
|
);
|
||||||
else
|
else
|
||||||
$item = utf8_encode( $item );
|
if( function_exists( "mb_check_encoding" ) && ! mb_check_encoding( $item, "UTF-8" ) )
|
||||||
|
$item = utf8_encode( $item );
|
||||||
}
|
}
|
||||||
|
|
||||||
public function checkAuth() {
|
public function checkAuth() {
|
||||||
|
3
ifm.php
3
ifm.php
@@ -2957,7 +2957,8 @@ function IFM( params ) {
|
|||||||
array( $this, 'convertToUTF8' )
|
array( $this, 'convertToUTF8' )
|
||||||
);
|
);
|
||||||
else
|
else
|
||||||
$item = utf8_encode( $item );
|
if( function_exists( "mb_check_encoding" ) && ! mb_check_encoding( $item, "UTF-8" ) )
|
||||||
|
$item = utf8_encode( $item );
|
||||||
}
|
}
|
||||||
|
|
||||||
public function checkAuth() {
|
public function checkAuth() {
|
||||||
|
@@ -886,7 +886,8 @@ f00bar;
|
|||||||
array( $this, 'convertToUTF8' )
|
array( $this, 'convertToUTF8' )
|
||||||
);
|
);
|
||||||
else
|
else
|
||||||
$item = utf8_encode( $item );
|
if( function_exists( "mb_check_encoding" ) && ! mb_check_encoding( $item, "UTF-8" ) )
|
||||||
|
$item = utf8_encode( $item );
|
||||||
}
|
}
|
||||||
|
|
||||||
public function checkAuth() {
|
public function checkAuth() {
|
||||||
|
Reference in New Issue
Block a user