1 file.inc file_unmunge_filename($filename)

Undoes the effect of file_munge_filename().

Parameters

$filename: String with the filename to be unmunged.

Return value

An unmunged filename string.:

Related topics

File

core/includes/file.inc, line 1275
API for handling file uploads and server file management.

Code

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