Skip to content

Commit

Permalink
fix gallery upload with idkeys (parameter for ajax=true was missing) #29
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbaseman committed May 17, 2019
1 parent 0b08aa2 commit 9027218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uploader/upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
throw new RuntimeException('missing parameters');
}

$post_id = $admin->checkIDKEY('post_id', false, 'GET');
$post_id = $admin->checkIDKEY('post_id', false, 'GET', true);

if(! is_numeric($post_id) || (intval($post_id)<=0)){
throw new RuntimeException('wrong parameter value');
Expand Down

0 comments on commit 9027218

Please sign in to comment.