summaryrefslogtreecommitdiff
path: root/inc/search.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2012-07-28 10:40:48 +0200
committerAndreas Gohr <andi@splitbrain.org>2012-07-28 10:40:48 +0200
commit3009a773c06e6e5d731c42b12ad82272f9706f03 (patch)
tree4e15ab478a04177de73ad9601842eee5c1be2162 /inc/search.php
parentf393a4eb51a5f8ed0e64f09f76cbafe57d7dcb57 (diff)
downloadrpg-3009a773c06e6e5d731c42b12ad82272f9706f03.tar.gz
rpg-3009a773c06e6e5d731c42b12ad82272f9706f03.tar.bz2
replaced use of basename() with utf8_basename() FS#2015
Diffstat (limited to 'inc/search.php')
-rw-r--r--inc/search.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/search.php b/inc/search.php
index a26ae4808..a02b86b34 100644
--- a/inc/search.php
+++ b/inc/search.php
@@ -171,7 +171,7 @@ function search_media(&$data,$base,$file,$type,$lvl,$opts){
return false;
}
- $info['file'] = basename($file);
+ $info['file'] = utf8_basename($file);
$info['size'] = filesize($base.'/'.$file);
$info['mtime'] = filemtime($base.'/'.$file);
$info['writable'] = is_writable($base.'/'.$file);
@@ -589,7 +589,7 @@ function search_universal(&$data,$base,$file,$type,$lvl,$opts){
$item['open'] = $return;
if($opts['meta']){
- $item['file'] = basename($file);
+ $item['file'] = utf8_basename($file);
$item['size'] = filesize($base.'/'.$file);
$item['mtime'] = filemtime($base.'/'.$file);
$item['rev'] = $item['mtime'];