file_unmunge_filename

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 858

<?php
function file_unmunge_filename($filename) {
  return str_replace('_.', '.', $filename);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.