fixes #177, possible XSS in Media Manager plugin
This commit is contained in:
parent
e53acdeef3
commit
d3f3294965
@ -233,7 +233,7 @@ class admin_uploader_mediamanager extends AdminPanelAction {
|
|||||||
|
|
||||||
function onsubmit($data = NULL) {
|
function onsubmit($data = NULL) {
|
||||||
if (isset($_POST ['mm-newgallery'])) {
|
if (isset($_POST ['mm-newgallery'])) {
|
||||||
$newgallery = $_POST ['mm-newgallery-name'];
|
$newgallery = strip_tags($_POST ['mm-newgallery-name']);
|
||||||
if ($newgallery == "") {
|
if ($newgallery == "") {
|
||||||
$this->smarty->assign('success', -3);
|
$this->smarty->assign('success', -3);
|
||||||
return 2;
|
return 2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user