Skip navigation
Help

file_unmunge_filename

6 file.inc file_unmunge_filename($filename)
7 file.inc file_unmunge_filename($filename)

Undo the effect of upload_munge_filename().

Parameters

$filename: String with the filename to be unmunged.

Return value

An unmunged filename string.

Related topics

1 call to file_unmunge_filename()

File

drupal/includes/file.inc, line 1148
API for handling file uploads and server file management.

Code

function file_unmunge_filename($filename) {
  return str_replace('_.', '.', $filename);
}