summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-03-30 19:16:11 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-03-30 19:16:11 +0000
commit9dc66c6949d9b1ad8e0a7ea2da3941696f9aeb92 (patch)
tree92525aae7a16d701c31ac33abf9491af6ad162d4
parent828b2288207a9f24ea264d0456d7ff951b931fe3 (diff)
downloadampache-9dc66c6949d9b1ad8e0a7ea2da3941696f9aeb92.tar.gz
ampache-9dc66c6949d9b1ad8e0a7ea2da3941696f9aeb92.tar.bz2
ampache-9dc66c6949d9b1ad8e0a7ea2da3941696f9aeb92.zip
tweaked mime detection
-rwxr-xr-xdocs/CHANGELOG4
-rw-r--r--lib/class/song.class.php3
-rw-r--r--modules/init.php2
3 files changed, 6 insertions, 3 deletions
diff --git a/docs/CHANGELOG b/docs/CHANGELOG
index b774c36c..98c8f117 100755
--- a/docs/CHANGELOG
+++ b/docs/CHANGELOG
@@ -3,6 +3,10 @@
--------------------------------------------------------------------------
--------------------------------------------------------------------------
+ v.3.3.2-Beta3
+ - Fixed mime detection, wasn't strtolowering the value
+
+--------------------------------------------------------------------------
v.3.3.2-Beta2
- Fixed some Charset problems with htmlentities (Thx Nikk)
- Fixed some issues with IE and session caching (Thx wishbone)
diff --git a/lib/class/song.class.php b/lib/class/song.class.php
index a68a96dc..ff588eef 100644
--- a/lib/class/song.class.php
+++ b/lib/class/song.class.php
@@ -123,7 +123,7 @@ class Song {
preg_match('/\.([A-Za-z0-9]+)$/', $this->file,$results);
- $this->type = $results[1];
+ $this->type = strtolower(results[1]);
switch ($this->type) {
case "spx":
@@ -131,7 +131,6 @@ class Song {
$this->mime = "application/x-ogg";
break;
case "wma":
- case "WMA":
case "asf":
$this->mime = "audio/x-ms-wma";
break;
diff --git a/modules/init.php b/modules/init.php
index 94f504e3..a46585ea 100644
--- a/modules/init.php
+++ b/modules/init.php
@@ -80,7 +80,7 @@ if (!$results['allow_stream_playback']) {
/** This is the version.... fluf nothing more... **/
-$results['version'] = '3.3.2-Beta2';
+$results['version'] = '3.3.2-Beta3 (Build 001)';