use detaintPath on modal to prevent including other files instead of real modals
parent
4067151fd8
commit
119e4e6756
|
@ -1,11 +1,10 @@
|
|||
<?php
|
||||
|
||||
if (empty($_REQUEST['modal'])) {
|
||||
ajaxError('Modal Name Not Provided');
|
||||
return;
|
||||
}
|
||||
|
||||
$modal = validJsStr($_REQUEST['modal']);
|
||||
$modal = detaintPath($_REQUEST['modal']);
|
||||
$data = array();
|
||||
|
||||
ZM\Debug("Including modals/$modal.php");
|
||||
|
|
Loading…
Reference in New Issue