function _filebrowser_safe_basename in Filebrowser 7.4
Same name and namespace in other branches
- 8 filebrowser.helpers.inc \_filebrowser_safe_basename()
- 6.2 includes/filesystem.inc \_filebrowser_safe_basename()
- 7.2 filebrowser.helpers.inc \_filebrowser_safe_basename()
- 7.3 filebrowser.helpers.inc \_filebrowser_safe_basename()
UTF8 bullet-proof basename replacement.
7 calls to _filebrowser_safe_basename()
- filebrowser_filebrowser_download_manager_process in ./
filebrowser.module - name
- filebrowser_form_delete_confirm in ./
filebrowser.module - File delete confirmation form CHECK: $node is used but not defined in this function
- filebrowser_form_rename in ./
filebrowser.module - _state
- filebrowser_page_download in ./
filebrowser.pages.inc - Callback for filebrowser_download/%node menu.
- s3_create_archive in modules/
s3_fb.module - We cannot use regular PHP file functions to create the archive files so we use AWS SDK
File
- ./
filebrowser.helpers.inc, line 48 - Misc helper functions.
Code
function _filebrowser_safe_basename($path) {
$path = rtrim($path, '/');
$path = explode('/', $path);
return end($path);
}