function file_unmunge_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

1 call to file_unmunge_filename()
NameMungingTest::testUnMunge in drupal/core/modules/system/lib/Drupal/system/Tests/File/NameMungingTest.php
Ensure that unmunge gets your name back.

File

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

Code

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