Merge branch 'devel' of dev.sourcefabric.org:airtime into devel
This commit is contained in:
commit
9c31a158a3
2 changed files with 19 additions and 7 deletions
|
@ -36,11 +36,12 @@ Linked code:
|
|||
* Kombu
|
||||
- Web site: http://pypi.python.org/pypi/kombu/
|
||||
- License: New BSD
|
||||
- Compatible with GPLv3? Yes.
|
||||
- Compatible with GPLv3? Yes
|
||||
|
||||
* pyinotify
|
||||
- Web site: https://github.com/seb-m/pyinotify
|
||||
- License: MIT
|
||||
- Compatible with GPLv3? Yes
|
||||
|
||||
* PHP-AMQPLIB
|
||||
- Web site: https://github.com/tnc/php-amqplib
|
||||
|
@ -50,14 +51,17 @@ Linked code:
|
|||
----------------
|
||||
Non-linked code:
|
||||
----------------
|
||||
* Linux
|
||||
* Linux 2.6
|
||||
- Web site: http://www.kernel.org/
|
||||
- License: GPLv2. See http://www.kernel.org/pub/linux/kernel/COPYING
|
||||
|
||||
* Apache Web Server 2.2
|
||||
- Web site: http://httpd.apache.org/
|
||||
- License: Apache 2.0. See http://httpd.apache.org/docs/2.2/license.html
|
||||
|
||||
* PostgreSQL 8.4
|
||||
- Web site: http://www.postgresql.org/
|
||||
- License: The PostgreSQL License. See http://www.opensource.org/licenses/postgresql
|
||||
- License: The PostgreSQL License. See http://www.postgresql.org/about/licence
|
||||
|
||||
* PHP 5.3
|
||||
- Web site: http://www.php.net/
|
||||
|
@ -76,6 +80,8 @@ Non-linked code:
|
|||
- License: Mozilla Public License (http://www.rabbitmq.com/mpl.html)
|
||||
|
||||
* mp3cut from the package poc-streamer
|
||||
- Web site: https://bl0rg.net/software/poc/
|
||||
- License: BSD 3-Clause
|
||||
|
||||
* ecasound 2.7.2
|
||||
- Web site: http://www.eca.cx/ecasound/
|
||||
|
|
|
@ -103,8 +103,14 @@ class ApiController extends Zend_Controller_Action
|
|||
//We just want the basename which is the file name with the path
|
||||
//information stripped away. We are using Content-Disposition to specify
|
||||
//to the browser what name the file should be saved as.
|
||||
$path_parts = pathinfo($media->getPropelOrm()->getDbFilepath());
|
||||
header('Content-Disposition: attachment; filename="'.$path_parts['basename'].'"');
|
||||
//
|
||||
// By james.moon:
|
||||
// I'm removing pathinfo() since it strips away UTF-8 characters.
|
||||
// Using manualy parsing
|
||||
$full_path = $media->getPropelOrm()->getDbFilepath();
|
||||
$file_base_name = strrchr($full_path, '/');
|
||||
$file_base_name = substr($file_base_name, 1);
|
||||
header('Content-Disposition: attachment; filename="'.$file_base_name.'"');
|
||||
}
|
||||
header("Content-Length: " . filesize($filepath));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue