Skip to content

Commit

Permalink
Don't put garbage in redirection URLs.
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed Dec 10, 2023
1 parent 4ddb21f commit 4815e00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/p_bulkassign.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ function print() {
// redirect if save cancelled
if (isset($qreq->saveassignment)
&& isset($qreq->cancel)) {
unset($qreq->saveassignment);
unset($qreq->saveassignment, $qreq->p, $qreq->pap);
$conf->redirect_self($qreq); // should not return
return;
}
Expand All @@ -199,6 +199,7 @@ function print() {
&& isset($qreq->data)
&& $qreq->assignment_size_estimate < 1000
&& $this->complete_assignment(null)) {
unset($qreq->saveassignment, $qreq->p, $qreq->pap);
$conf->redirect_self($qreq);
return;
}
Expand Down

0 comments on commit 4815e00

Please sign in to comment.