Check url construction before download of file

This commit is contained in:
Michael RICOIS 2012-06-05 16:34:06 +00:00
parent ce1f6fb7d7
commit 759ae17e2a

View File

@ -227,7 +227,7 @@ class TelechargementController extends Zend_Controller_Action
$request = $this->getRequest();
$url = "http://wse.scores-decisions.com:8081/fichier/bodacc/q";
$url = "http://wse.scores-decisions.com:8081/fichier/bodacc";
$q = $request->getParam('q', '');
@ -235,7 +235,7 @@ class TelechargementController extends Zend_Controller_Action
$auth = Zend_Auth::getInstance();
$identity = $auth->getIdentity();
$authinfo = '/login/'.$identity->username.'/hach/'.$identity->password;
$url = $url.$authinfo.'/'.$q;
$url = $url.$authinfo.'/q/'.$q;
$file = $this->getFile($url, uniqid().'.pdf');