#53197, function file_check_location return wrong exit code, patch by Patrick Deburca
parent
8ce5fe4d1f
commit
e24028e9d1
|
@ -269,7 +269,7 @@ function file_check_upload($source = 'upload') {
|
||||||
* @param $directory A string where the file should be located.
|
* @param $directory A string where the file should be located.
|
||||||
* @return 0 for invalid path or the real path of the source.
|
* @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);
|
$check = realpath($source);
|
||||||
if ($check) {
|
if ($check) {
|
||||||
$source = $check;
|
$source = $check;
|
||||||
|
|
Loading…
Reference in New Issue