function file_unmunge_filename

Same name and namespace in other branches
  1. 9 core/includes/file.inc \file_unmunge_filename()
  2. 8.9.x core/includes/file.inc \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()
FileNameMungingTest::testUnMunge in modules/simpletest/tests/file.test
Ensure that unmunge gets your name back.

File

includes/file.inc, line 1227

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.