file_unmunge_filename

Definition

file_unmunge_filename($filename)
drupal/includes/file.inc, line 638

Description

Undo the effect of upload_munge_filename().

Parameters

$filename String with the filename to be unmunged.

Return value

An unmunged filename string.

Related topics

Namesort iconDescription
File interfaceCommon file handling functions.

Code

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