fix function getBaseName($path)
Status: Beta
Brought to you by:
legend9
about ff compatibility in Form post
the filename of input-file is no dir(winxp,ff2.0)
so the regeneration will loss the first char in the function getBaseName($path)
change the code as this will fix the bug:
function getBaseName($path)
{
$path = str_replace(”\\”, “/”, $path);
if(!strrpos($path, “/”)){
return $path;
}else{
return substr($path, strrpos($path, “/”) + 1);
}
}
function getBaseName($path)
{
$path = str_replace("\\", "/", $path);
if (substr_count($path, '/') > 0) {
return substr($path, strrpos($path, "/") + 1);
} else {
return $path;
}
}