You are here

function _filebrowser_safe_basename in Filebrowser 6.2

Same name and namespace in other branches
  1. 8 filebrowser.helpers.inc \_filebrowser_safe_basename()
  2. 7.4 filebrowser.helpers.inc \_filebrowser_safe_basename()
  3. 7.2 filebrowser.helpers.inc \_filebrowser_safe_basename()
  4. 7.3 filebrowser.helpers.inc \_filebrowser_safe_basename()

UTF8 bullet-proof basename replacement.

5 calls to _filebrowser_safe_basename()
filebrowser_form_delete_confirm in ./filebrowser.module
File delete confirmation form
filebrowser_page_download in includes/downloads.inc
Callback for filebrowser_download/%node menu.
_filebrowser_file_download in includes/downloads.inc
hook_filebrowser_download_manager_process implementation.
_filebrowser_match_path in includes/helpers.inc
Helper function to match a pattern on the path
_filebrowser_read_description in includes/metadata.inc

File

includes/filesystem.inc, line 317

Code

function _filebrowser_safe_basename($path) {
  $path = rtrim($path, '/');
  $path = explode('/', $path);
  return end($path);
}