Skip to content

Commit

Permalink
urlencode fixed for QRcode generation with Google Chart API
Browse files Browse the repository at this point in the history
solves #131
  • Loading branch information
fwild authored Aug 1, 2023
1 parent d8e7f78 commit 49c149c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/output/arlemtable.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ function draw_table($arlemslist, $tableid, $teacherview = false, $moduleid = nul
$qrbuttonimage = html_writer::start_tag('img', $qrbuttonimageparams);
$qrbuttonparams = array(
'name' => 'dlBtn' . $arlem->fileid,
'href' => "https://chart.googleapis.com/chart?cht=qr&chs=500x500&chl={$playurl}",
'href' => "https://chart.googleapis.com/chart?cht=qr&chs=500x500&chl=" . urlencode($playurl) . "",
'target' => '_blank'
);
$qrbutton = html_writer::start_tag('a', $qrbuttonparams) . $qrbuttonimage . html_writer::end_tag('a');
Expand Down Expand Up @@ -727,4 +727,4 @@ function generate_rating_stars($itemid, $teacherview) {
$ratingsystem .= html_writer::end_div();

return $ratingsystem;
}
}

0 comments on commit 49c149c

Please sign in to comment.