modified : request should expect integers to proceed
This commit is contained in:
parent
0d83eb6ebb
commit
619c67f5fa
2 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@
|
|||
case 'get_video':{
|
||||
$response = array();
|
||||
try{
|
||||
$videoid = $_POST['videoid'];
|
||||
$videoid = (int)$_POST['videoid'];
|
||||
$videoDetails = $cbvid->get_video($videoid);
|
||||
if ( $videoDetails && video_playable($videoDetails) ){
|
||||
assign('video',$videoDetails);
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
$assign_arry['vdo'] = $vdo;
|
||||
if(video_playable($vdo)) {
|
||||
//Checking for playlist
|
||||
$pid = $_GET['play_list'];
|
||||
$pid = (int)$_GET['play_list'];
|
||||
if(!empty($pid)) {
|
||||
$plist = get_playlist( $pid );
|
||||
if ( $plist ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue