CC-4051: Library -> First character gets cut off of file name when downloading a track from a watched folder
-fixed
This commit is contained in:
parent
68420a898f
commit
7ea106e0d3
|
@ -134,8 +134,9 @@ class ApiController extends Zend_Controller_Action
|
||||||
*/
|
*/
|
||||||
if (!$file_base_name) {
|
if (!$file_base_name) {
|
||||||
$file_base_name = $full_path;
|
$file_base_name = $full_path;
|
||||||
}
|
} else {
|
||||||
$file_base_name = substr($file_base_name, 1);
|
$file_base_name = substr($file_base_name, 1);
|
||||||
|
}
|
||||||
// possibly use fileinfo module here in the future.
|
// possibly use fileinfo module here in the future.
|
||||||
// http://www.php.net/manual/en/book.fileinfo.php
|
// http://www.php.net/manual/en/book.fileinfo.php
|
||||||
$ext = pathinfo($fileID, PATHINFO_EXTENSION);
|
$ext = pathinfo($fileID, PATHINFO_EXTENSION);
|
||||||
|
|
Loading…
Reference in New Issue