(2003-2009) * @author Froxlor team (2010-) * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt * @package Functions * @version $Id$ */ /** * Function which returns a correct filename, means to add a slash at the beginning if there wasn't one * * @param string filename the filename * @return string the corrected filename * @author Florian Lippert * @author Michael Russ * @author Martin Burchert */ function makeCorrectFile($filename) { if(substr($filename, 0, 1) != '/') { $filename = '/' . $filename; } $filename = makeSecurePath($filename); return $filename; }