XSS exploit prevention - audio preview
This commit is contained in:
parent
50bfcb7eb8
commit
909f2c95c4
|
@ -62,8 +62,8 @@ class AudiopreviewController extends Zend_Controller_Action
|
||||||
$this->view->audioFileID = $audioFileID;
|
$this->view->audioFileID = $audioFileID;
|
||||||
// We need to decode artist and title because it gets
|
// We need to decode artist and title because it gets
|
||||||
// encoded twice in js
|
// encoded twice in js
|
||||||
$this->view->audioFileArtist = urldecode($audioFileArtist);
|
$this->view->audioFileArtist = htmlspecialchars(urldecode($audioFileArtist));
|
||||||
$this->view->audioFileTitle = urldecode($audioFileTitle);
|
$this->view->audioFileTitle = htmlspecialchars(urldecode($audioFileTitle));
|
||||||
$this->view->type = $type;
|
$this->view->type = $type;
|
||||||
|
|
||||||
$this->_helper->viewRenderer->setRender('audio-preview');
|
$this->_helper->viewRenderer->setRender('audio-preview');
|
||||||
|
|
Loading…
Reference in New Issue