streaming of files with big letters in the extension fails

Fixed and closed topics
Locked
Superlexx
User
Posts: 45
Joined: Thu Feb 10, 2005 8:51 pm

streaming of files with big letters in the extension fails

Post by Superlexx »

put test.MP3 into the media dir, update the database and try streaming the file - it fails. Now rename the file to test.mp3, update the DB and try again - it works.
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Post by wbartels »

Thanks,
It is easy to fix:

change line 112 from stream.php

Code: Select all

$extension	= $pathinfo['extension'];
to

Code: Select all

$extension	= strtolower($pathinfo['extension']);
The same bug accurse when trying to record from files with high case extensions.

change line 135 from record.php

Code: Select all

$extension	= $pathinfo['extension'];
to

Code: Select all

$extension	= strtolower($pathinfo['extension']);
Superlexx
User
Posts: 45
Joined: Thu Feb 10, 2005 8:51 pm

Post by Superlexx »

thx 4 the fix, works now 8)
Locked