file_unmunge_filename

  1. drupal
    1. 6
    2. 8
    3. 7
Versions
6 – 7 file_unmunge_filename($filename)

Undo the effect of upload_munge_filename().

Parameters

$filename String with the filename to be unmunged.

Return value

An unmunged filename string.

Related topics

Code

includes/file.inc, line 1149

<?php
function file_unmunge_filename($filename) {
  return str_replace('_.', '.', $filename);
}
?>