You are here

function file_unmunge_filename in Drupal 6

Same name and namespace in other branches
  1. 8 core/includes/file.inc \file_unmunge_filename()
  2. 7 includes/file.inc \file_unmunge_filename()
  3. 9 core/includes/file.inc \file_unmunge_filename()

Undo the effect of upload_munge_filename().

Parameters

$filename string filename:

Return value

string

Related topics

File

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

Code

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