Menu

#4572 (ok 4.2.11) missing trailing slash (import and open_basedir)

4.2.10
fixed
None
1
2014-10-31
2014-10-23
aurélien
No

when open_basedir is active, phpmyadmin gets the upload dir (upload_tmp_dir or sys_temp_dir) and create a new filename at this line (import.php:383):

$import_file_new = $tmp_subdir . basename($import_file) . uniqid();

It gives an invalid path as sys_temp_dir never (?) ends with a slashe.
Similarly, upload_tmp_dir may end with or without a slashe.

In my case, the resulting path looks like '/var/lib/phpmyadmin/tmpphpSkVWnh'

phpmyadmin 4.2.5deb1

1 Attachments

Discussion

  • aurélien

    aurélien - 2014-10-28

    It's ok.

     
  • Marc Delisle

    Marc Delisle - 2014-10-31
    • Status: resolved --> fixed