function file_unmunge_filename

7.x file_unmunge_filename($filename)
6.x file_unmunge_filename($filename)
8.x file_unmunge_filename($filename)

Undoes the effect of file_munge_filename().


$filename: String with the filename to be unmunged.

Return value

An unmunged filename string.

Related topics

1 call to file_unmunge_filename()
FileNameMungingTest::testUnMunge in drupal/modules/simpletest/tests/file.test
Ensure that unmunge gets your name back.


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


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