#53197, function file_check_location return wrong exit code, patch by Patrick Deburca

4.7.x
Gerhard Killesreiter 2006-04-08 18:39:26 +00:00
parent 8ce5fe4d1f
commit e24028e9d1
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ function file_check_upload($source = 'upload') {
* @param $directory A string where the file should be located.
* @return 0 for invalid path or the real path of the source.
*/
function file_check_location($source, $directory = 0) {
function file_check_location($source, $directory = '') {
$check = realpath($source);
if ($check) {
$source = $check;